ErikWittern / openapi-snippet

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

Small fixes for OAS 3.0 #23

Closed plambein closed 4 years ago

plambein commented 4 years ago

I came across these issues while generating snippets for my OAS 3.0 file.

1) The key "scheme" was used for security components that don't have type "http", resulting in an error.

2) Added support for the "example" keyword, under "schema" of query parameters, which is how examples should be defined in OAS 3.0.

ErikWittern commented 4 years ago

@plambein I just cloned your repo and tried to run tests, however, 10 of them fail. Is it the same for you?

plambein commented 4 years ago

@ErikWittern indeed, my bad. I have fixed the tests!