oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

538 default param values

Open wjase opened this issue 3 years ago • 4 comments

Fix for issue 538

wjase avatar Mar 13 '22 10:03 wjase

Found it. go1.17 url has a Has() method - go1.16 doesn't

wjase avatar Mar 13 '22 11:03 wjase

Hi @deepmap-marcinr Just wondering what needs doing to have this merge ready?

wjase avatar Mar 13 '22 11:03 wjase

The reason we don't have this yet is because it's difficult. What it the default value is an object, not a simple string/primitive?

With the code as-is, you'll get errors processing those OpenAPI specs.

deepmap-marcinr avatar Apr 19 '22 15:04 deepmap-marcinr

Hi There, Thanks for the feedback - I'll test drive a fix to address your comments.

wjase avatar Apr 20 '22 12:04 wjase