OpenAPI Functions
All vacuum OpenAPI built-in functions, designed specifically for OpenAPI 2 & 3.
duplicatePaths
Detect duplicate path definitions in OpenAPI specifications that cause silent data lossoasUnnecessaryCombinator
Detect schema combinators (allOf, anyOf, oneOf) with only one item that should be simplifiedoasCamelCaseProperties
Validate that schema property names use camelCase naming conventionnoRequestBody
Checks that GET and DELETE operations do not have request bodies definedmissingType
Checks that all schemas and their properties have a type definedpathItemReferences
Check path items are not using referencesoasRefSiblings
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.