emicklei / go-restful-openapi

OpenAPI extension in Go for the go-restful package
MIT License
135 stars 72 forks source link

set allowedvalues and defaultvalue according to data type (#110) #111

Closed zmay2030 closed 1 year ago

zmay2030 commented 1 year ago

This ensures that AllowableValues and Default always attempt to parse according to their data type. If no data type is specified or the parse failed, it just sets it as a string as it was doing previously

emicklei commented 1 year ago

@zmay2030 i think the changes also need to go to the v2 branch

zmay2030 commented 1 year ago

done https://github.com/emicklei/go-restful-openapi/pull/112