Closed antoine-de closed 5 years ago
For the moment the enum could not be serialized if they had some doc comment (due to attrs being not empty)
attrs
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
This is a nice one. Thanks!
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