Fortinet black logo

CLI Reference

waf json-schema

waf json-schema

Use this command to view JSON schema files that have already been uploaded to FortiWeb. You can upload JSON schema files only in the web UI.

You can reference the JSON schema file in a JSON protection rule, or add multiple JSON schema files in a group (Config waf json-schema group) then reference it in JSON protection rule.

To use this command, your administrator account’s access control profile must have either w or rw permission to the wafgrp area. For details, see Permissions.

Syntax

config waf json-schema file

edit "<json_schema_file_name>"

set json-schema-version {Auto-identify | Draft-3| Draft-4| Draft-6| Draft-7| Draft-201909| Draft-202012}

next

end

Variable

Description

Default

"<json_schema_file_name>"

To display a list of existing JSON schema files, enter:

edit ?

No default.

json-schema-version {Auto-identify | Draft-3| Draft-4| Draft-6| Draft-7| Draft-201909| Draft-202012}

Select a JSON schema version. The system will check if schema file is valid against the specified version.

If your select Auto-identify, FortiWeb will use the version stated by the ‘$schema’ key in the JSON Schema file. If ‘$schema’ is not found or incorrect, then all versions will be checked.

Auto-identify

Related topics

waf json-schema

Use this command to view JSON schema files that have already been uploaded to FortiWeb. You can upload JSON schema files only in the web UI.

You can reference the JSON schema file in a JSON protection rule, or add multiple JSON schema files in a group (Config waf json-schema group) then reference it in JSON protection rule.

To use this command, your administrator account’s access control profile must have either w or rw permission to the wafgrp area. For details, see Permissions.

Syntax

config waf json-schema file

edit "<json_schema_file_name>"

set json-schema-version {Auto-identify | Draft-3| Draft-4| Draft-6| Draft-7| Draft-201909| Draft-202012}

next

end

Variable

Description

Default

"<json_schema_file_name>"

To display a list of existing JSON schema files, enter:

edit ?

No default.

json-schema-version {Auto-identify | Draft-3| Draft-4| Draft-6| Draft-7| Draft-201909| Draft-202012}

Select a JSON schema version. The system will check if schema file is valid against the specified version.

If your select Auto-identify, FortiWeb will use the version stated by the ‘$schema’ key in the JSON Schema file. If ‘$schema’ is not found or incorrect, then all versions will be checked.

Auto-identify

Related topics