Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support flag enums in TypeScript code generator #719

Open
RicoSuter opened this issue Jun 19, 2018 · 4 comments
Open

Support flag enums in TypeScript code generator #719

RicoSuter opened this issue Jun 19, 2018 · 4 comments

Comments

@RicoSuter
Copy link
Owner

RicoSuter commented Jun 19, 2018

Flag enums must be manually deserialized/serialized in TypeScript DTOs (interfaces cannot support it correctly).

Tasks:

See pr for x-enumFlag generation: #713

@YZahringer
Copy link

Any news about this?

@RicoSuter
Copy link
Owner Author

I recommend to use an array of enums - x-enumFlag is NJS specific and not supported by other tooling...

@RicoSuter
Copy link
Owner Author

I dont have plans to implement this soon (mainly because I personally not need it and I don't recommend it).

@YZahringer
Copy link

Ok thanks, to follow: https://github.com/json-schema-org/json-schema-spec/issues/518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants