metosin / ring-swagger

Swagger Spec for Clojure Web Apps
http://metosin.github.io/ring-swagger/doc/
371 stars 84 forks source link

generate enum of size one for an s/eq schema #135

Closed opqdonut closed 5 years ago

opqdonut commented 5 years ago

this is what the swagger spec recommends for compulsory parameters

opqdonut commented 5 years ago

Good point, I'll check the spec and add a test

opqdonut commented 5 years ago

The RFC doesn't spell it out, but "5.5.1 enum" is under "5.5. Validation keywords for any instance type".

I also checked that swagger ui works for int enums.

ikitommi commented 5 years ago

oh, so it seems. Thanks!