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

Issue with serializing enum to schema #127

Open
felislynx-silae opened this issue Jan 31, 2018 · 0 comments
Open

Issue with serializing enum to schema #127

felislynx-silae opened this issue Jan 31, 2018 · 0 comments

Comments

@felislynx-silae
Copy link

Hi, i am trying to convert object to schema, where i'm using few enums. And sometimes the same enum is used in few places. I would love to have enum saved as separate object with references there, instead of multiple repetitions of field like this:

"theme" : {
"type" : "string",
"enum" : [ "LIGHT", "DARK" ]
},

Is there any way to achieve that?

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

No branches or pull requests

1 participant