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

unable to set an attribute value from an enum list #16

Open
vpappula opened this issue May 2, 2017 · 1 comment
Open

unable to set an attribute value from an enum list #16

vpappula opened this issue May 2, 2017 · 1 comment

Comments

@vpappula
Copy link

vpappula commented May 2, 2017

I've tried to set the value of action to one of the values from the enum using JsonGeneratorConfig, but I don't think this is supported. Please correct me if I am wrong.
"action": { "enum": [ "action1", "action2", "action3" ], "id": "/properties/action", "type": "string" }

@djodjoni
Copy link
Member

djodjoni commented Jun 4, 2017

no enum generator does not use the configuration yet. You can make a PR :) or simply leave in your schema only the Item you want so the generator will not have a choice.

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

2 participants