Skip to main content

operation-id-exists

Overview

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

The Operation Object must specify a unique identifier for the operation in the API document using the operationId property. This id is used by the code generation engine to generate relevant components tied to an endpoint.

PropertyValue
EnabledYes
Maximum SeverityError
MessageRequired operation id is missing from the operation object.
CodeOPENAPI3APIMATIC_L230
TypeLinting
Rule SystemSemantic
Broad CategoryOpenAPI Operations
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsopenapi3 openapi apimatic semantic linting operation id id operation

Suggested Fixes

  • Ensure that the Operation Object contains a non-null and non-empty id in the operationId property.

For More Information