ErikWittern / openapi-snippet

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

Issue #3 - use the default parameter value in a Swagger #8

Closed annieying closed 7 years ago

annieying commented 7 years ago

If a default value is provided and the client of swagger-snippet didn't provide a value, use the default value in the snippet.

If client code provides a value, even when a default value is present, the snippet should use the provided value.