boxdot / openapi-schema

Apache License 2.0
4 stars 1 forks source link

Support enum with doc string #14

Closed antoine-de closed 5 years ago

antoine-de commented 5 years ago

For the moment the enum could not be serialized if they had some doc comment (due to attrs being not empty)

This remove this constraints (I removed all the constraint because I was not able to make a non trivial enum fail, and I'm a noob with syn/quote)

I also added the enum's comment into the description of the enum.

It's not very nice, but it seems to only way to model it in openapi (and it is the advised way in the documentation

boxdot commented 5 years ago

This is a nice one. Thanks!