JSON Schema Compliance Assertion

Applies to ReadyAPI 3.52, last modified on April 25, 2024

The JSON Schema Compliance assertion verifies that the JSON body of the last response is compliant with the associated JSON schema definition.

This assertion is applicable to the REST, GraphQL, HTTP, and JMS request test steps only.

Availability

This assertion is available in multiple ReadyAPI applications. Depending on the application, it validates the following data:

In... Checks... To learn more...
Functional tests The response. See Working With Assertions in Functional Tests.
Security tests The response. See Security Assertions.

Create an assertion

Follow these steps:

Functional test: The Assertions panel

Click the image to enlarge it.

  1. Open a test step.

  2. Click Add assertion.

In the New Assertions dialog, search for the JSON Schema Compliance assertion or select it manually in the Compliance, Status and Standards category.

Follow these steps:

Security tests: The Assertions panel

Click the image to enlarge it.

  1. Open a security test.

  2. Click Response Assertion next to any scan.

  3. Click in the Assertions panel

In the New Assertions dialog, search for the JSON Schema Compliance assertion or select it manually in the Compliance, Status and Standards category.

Setting up properties

Specify the schema URL in the Schema URL field.

ReadyAPI: Configuring the JSON Schema Compliance assertion

Click the image to enlarge it.

Add other schema compliance assertions:

See Also

Compliance, Status and Standards Assertions
Schema Compliance Assertion

Highlight search results