openapistack / openapi-client-axios

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

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

Closed pas-mike closed 8 months ago

pas-mike commented 9 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 8 months ago

I think this makes sense as a default option 👍