JSON Schema describes the structure of a JSON document (for instance, required properties and length limitations). Applications can use this information to validate instances (check that constraints are met), or inform interfaces to collect user input such that the constraints are satisfied.
The schema will validate when the user upload it through CLI/WEB GUI. Only the schema that passes the validation can be saved in ADC.
You can configure FortiADC's web application firewall (WAF) to use trusted JSON schema files to validate JSON content in HTTP requests that contain JSON. Using JSON schema files to validate JSON content can ensure that client requests to web servers are well-formed and do not contain any potential attacks.
Before you begin, you must:
- Download a trusted JSON schema file that you can import to FortiADC. Acceptable file types are
- Go to Web Application Firewall > API Protection and select the JSON Schema tab.
- Click Create New.
- Enter the name of the JSON schema configuration. You will use the name to select the schema file in JSON detection profiles. No spaces.
- Click Choose File and select the JSON schema file that you want to import.
- Click Save.