NorfairKing / autodocodec

self(auto)- documenting encoders and decoders
MIT License
121 stars 20 forks source link

Add a type field when generating enum schema from EqCodec #15

Closed dmoverton closed 2 years ago

dmoverton commented 2 years ago

This PR adds a type field for enum values when generating an OpenAPI schema from EqCodec. This is required to work around an issue with swagger-ui where it does not show the enum value unless a type is also given.

NorfairKing commented 2 years ago

Oeh that's really smart! Let's see what CI says.

NorfairKing commented 2 years ago

Wouldn't mind a changelog here either, but let me merge #16 first.

dmoverton commented 2 years ago

I added a changelog entry. I put it under 0.2.0.0, assuming you want to release this along with #16. Please feel free to move it if that's not your plan.

NorfairKing commented 2 years ago

Merged and released!