cknadler / nidyx

JSON Schema -> Objective-C model generator
MIT License
31 stars 8 forks source link

Enum in schema should create NS_ENUM #33

Closed sethfri closed 9 years ago

sethfri commented 9 years ago

Using an enum in a schema should generate an NS_ENUM in the model

cknadler commented 9 years ago

I've looked into this in the past. JSONModel doesn't support serializing to this, so I doubt support can be added. If you figure out a way, please reopen.

sethfri commented 9 years ago

In that case, how do you feel about adding some extern NSString *s to the header file so that consumers of the model can easily check the value of the property?

cknadler commented 9 years ago

Sure, that's a great idea. Feel free to open an issue for it. On Fri, May 29, 2015 at 7:02 PM Seth Friedman notifications@github.com wrote:

In that case, how do you feel about adding some extern NSString *s to the header file so that consumers of the model can check the value of the property?

— Reply to this email directly or view it on GitHub https://github.com/cknadler/nidyx/issues/33#issuecomment-106974295.