openapistack / openapi-client-axios

JavaScript client library for consuming OpenAPI-enabled APIs with axios
https://openapistack.co
MIT License
568 stars 68 forks source link

refactor(typegen): path parameters required in output #175

Closed pas-mike closed 10 months ago

pas-mike commented 11 months ago

This PR omits the optional on parameters if path parameters are used. This can be enabled using the CLI options disableOptionalPathParameters.

The reason for this PR is that path parameters are always required and it doesn't make sense that they should be optional.

anttiviljami commented 10 months ago

I think this makes sense as a default option 👍