APIs-guru / openapi-directory

🌐 Wikipedia for Web APIs. Directory of REST API definitions in OpenAPI 2.0/3.x format
https://apis.guru/
Creative Commons Zero v1.0 Universal
3.84k stars 575 forks source link

Confused about naming conventions #733

Closed timburks closed 3 years ago

timburks commented 3 years ago

I've been assuming that files named "swagger.yaml" are OpenAPI 2 specs and "openapi.yaml" are OpenAPI 3.x.

But I notice that this recently-added swagger.yaml is openapi: 3.0.0

Is it appropriate to expect file names to reflect spec formats?

timburks commented 3 years ago

In case this is helpful, here are the apparent inconsistencies that I see:

$ find ./APIs -name "swagger.yaml" -exec egrep "^openapi:" {} \; -print
openapi: 3.0.0
APIs/id4i.de/0.9.7/swagger.yaml
openapi: 3.0.0
APIs/biapi.pro/2.0/swagger.yaml
openapi: 3.0.0
APIs/amadeus.com/2.2.0/swagger.yaml
openapi: 3.0.0
APIs/monarchinitiative.org/1.0.1/swagger.yaml
$ find ./APIs -name "openapi.yaml" -exec egrep "^swagger:" {} \; -print
swagger: "2.0"
APIs/elmah.io/v3/openapi.yaml
MikeRalphson commented 3 years ago

Having monitored this for a few update runs and newly added APIs, I think this is resolved now. Thanks again.