Skip to navigation

API definition security validation

Deprecated
View as Markdown

This endpoint is deprecated.

Performs an analysis on the given definition and returns any issues based on your predefined rulesets. This endpoint can help you understand the violations’ impact and offers solutions to help you resolve any errors. You can include this endpoint to your CI/CD process to automate schema validation.

Note:

Authentication

x-api-keystring
API Key authentication via header

Request

This endpoint expects an object.
schemaobjectOptional
The API definition to validate.

Response

Successful Response
warningslist of maps from strings to anyOptional

Information about each issue discovered in the analysis. Each object includes the violation’s severity and category, the location of the issue, data paths, and other information. This returns an empty object if there are no issues present in the schema.

If there are issues, this returns the possibleFixUrl response in each warning object. This provides a link to documentation you can use to resolve the warning.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error