oasDocumentSchema
oasDocumentSchema
checks that a specification matches the OpenAPI v2
or the OpenAPI 3 schema definitions.
The rule uses this OpenAPI v2 schema and this OpenAPI v3 schema.
Example ruleset configuration
oas2-schema:
description: "Check schema is correct"
type: "validation"
recommended: true
severity: "error"
given: "$"
then:
function: "oasDocumentSchema"