ErikWittern / openapi-snippet

Generates code snippets for given Swagger / Open API documents
MIT License
116 stars 67 forks source link

Snippets created for non-method PathItem in OpenAPI 3 #21

Open jens-duttke opened 5 years ago

jens-duttke commented 5 years ago

According to the Open API 3 specification there can be additional properties in paths, which don't identify a operation (e.g. summary, description, servers, parameters): https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#path-item-object https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathItemObject

Anyhow, swagger-snippet creates snippets for them, which doesn't make sense.