Skip to main content

valid-openapi-file-naming-conventions

Overview

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

The root OpenAPI document is recommended to be named as either openapi.json or openapi.yaml depending upon the data format used in the file.

PropertyValue
EnabledYes
Maximum SeverityInformation
MessageThe root OpenAPI file name does not follow recommended conventions.
CodeOPENAPI3STANDARDS_L001
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Root Information
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi standards semantic linting name file

Suggested Fixes

  • Main or root OpenAPI file is one which contains the OpenAPI version, paths and other information.
  • Standardized naming of files helps improve their discoverability for your users.

For More Information