OpenAPI Functions
All vacuum OpenAPI built-in functions, designed specifically for OpenAPI 2 & 3.
oasRefSiblings
Ensure $ref properties contain approved sibling nodesinfoContact
Ensure that theinfo
section contains a contact
object.
infoContactProperties
Ensurename
, url
and email
are defined in the contact object.
infoDescription
Ensure that theinfo
section contains a description
infoLicense
Ensure that theinfo
section contains a valid license.
infoLicenseUrl
Ensure that theinfo
section contains a valid license url
tagDescription
Ensure that everytag
object contains a description
infoLicenseURLSPDX
Ensure that either aurl
or identifier
is defined in the license object, but not both.
postResponseSuccess
Checks that a specification is a valid OpenAPI schemaschemaTypeCheck
Check a schema passes a basic type and type validation checkoasExampleExternalCheck
Checks examples don’t usevalue
and externalValue
together.
oasExampleMissing
Checks examples are defined for each type that supports them.oasExampleSchema
Checks examples match the schemas of the objects they represent.pathsKebabCase
Ensures that paths followkebab-case
naming conventions.