Fortinet Document Library

Version:

Version:

Version:

Version:


Table of Contents

Handbook

Download PDF
Copy Link

Importing JSON schema

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.

Software architecture

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 .tar, .tar.gz, or .zip.
To import a JSON schema file:
  1. Go to Web Application Firewall > XML & JSON Validation and select the JSON Schema tab.
  2. Click Create New.
  3. Enter the name of the JSON schema configuration. You will use the name to select the schema file in JSON detection profiles. No spaces.
  4. Click Choose File and select the JSON schema file that you want to import.
  5. Click Save.

Importing JSON schema

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.

Software architecture

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 .tar, .tar.gz, or .zip.
To import a JSON schema file:
  1. Go to Web Application Firewall > XML & JSON Validation and select the JSON Schema tab.
  2. Click Create New.
  3. Enter the name of the JSON schema configuration. You will use the name to select the schema file in JSON detection profiles. No spaces.
  4. Click Choose File and select the JSON schema file that you want to import.
  5. Click Save.