Skip to content

[Clarity] Differences OpenAPI specification, OpenAPI document and OpenAPI definition #2007

Closed
@patricekrakow

Description

@patricekrakow

I have just realized that I was often wrongly using expressions like:

  • my OpenAPI specification
  • the OpenAPI specification of my API
  • ...

I got it while reading the definition of 'OpenAPI Document':

A document (or set of documents) that defines or describes an API. An OpenAPI definition uses and conforms to the OpenAPI Specification.

I think that the sentence An OpenAPI definition uses and conforms to the OpenAPI Specification. makes it clear that OpenAPI Specification should be reserved to the specification of OpenAPI as language to define APIs, and not used to designate a particular definition of a specific API.

So, it looks like I should better use expressions like:

  • my OpenAPI definition
  • the OpenAPI definition of my API
  • ...

However, I have then realized that 'OpenAPI definition' is not defined explicitly within OpenAPI Specification. Within the definition of 'OpenAPI Document', I found the jump from 'document' (in the 1st sentence) to 'OpenAPI definition' (in the 2nd sentence) rather uncomfortable.

Would it make sense to define explicitly 'OpenAPI Definition'? In addition or in replacement of 'OpenAPI Document'?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions