oapi-codegen
oapi-codegen copied to clipboard
Fails to automagically bind default values to query param objects before validation
If you add a default value to a query param it is not reflected in the generated code. so you have to hand code your default in the service layer and mark it as optional and deal with a pointer when in fact it should always be there.
I have a PR in the works to fix this for query params at least on echo servers. The changes should be usable in the other templates too
https://github.com/deepmap/oapi-codegen/pull/540 fixes this for the echo server
Hi, any updates about the merge?