Skip to main content

non-empty-info-version

Overview

This rule belongs to the openapi-v3-apimatic-linting ruleset and states that:

In the OpenAPI 3.0 specification, the info version is a required property. The info object must contain non-null, non-empty and valid version property.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired info version is missing or empty.
CodeOPENAPI3APIMATIC_L041
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Info
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting API info version required missing empty

Suggested Fixes

  • Set a version of the API in the info object.
  • This version should not be confused with the OpenAPI specification version or the API implementation version which is specified using the openapi property in the root OpenAPI object.

For More Information