node-ottoman icon indicating copy to clipboard operation
node-ottoman copied to clipboard

Support for enums

Open nomadtechie opened this issue 8 years ago • 3 comments

I was wondering if support for enums is on the roadmap?

nomadtechie avatar Aug 23 '17 18:08 nomadtechie

Hey @amalahussein, Enums are not currently on the roadmap, but you can implement them yourself using a validator which will only accept a certain set of values. I will keep this open as a remind to consider implementing a built-in validator that does enumerations. Cheers, Brett

brett19 avatar Aug 28 '17 18:08 brett19

Awesome, thanks, @brett19! I'm actually using Sway + Swagger in my middleware for this exact thing. It would be a great extension to the Ottoman API though.

Thanks again. Amal

nomadtechie avatar Aug 29 '17 00:08 nomadtechie

We need to set priority for this feature request.

gsi-alejandro avatar Nov 19 '20 13:11 gsi-alejandro