We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've got two schemas that produce the same resulting shape of data from the form:
const schema1 = { type: 'object', properties: { multipleChoicesList: { uniqueItems: true, items: { enum: ['Entity A', 'Entity B', 'Entity C', 'Entity D'], type: 'string', }, type: 'array', title: 'A multiple choices list', }, }, }; const schema2 = { definitions: { entityList: { enum: ['Entity A', 'Entity B', 'Entity C'], type: 'string', }, }, type: 'object', properties: { 'Entity List': { uniqueItems: true, items: { $ref: '#/definitions/entityList' }, type: 'array', }, }, };
They produce two different forms:
schema1:
schema2:
Is this considered a bug in the library? It means that adding a uiSchema 'ui:widget': 'checkboxes' does not work with schema2.
'ui:widget': 'checkboxes'
Apply schemas above to playground.
Two schemas describing the same shape to produce the same form elements.
0.48.0
The text was updated successfully, but these errors were encountered:
Yes, that looks like a bug. Using $ref shouldn't change the schema.
$ref
Sorry, something went wrong.
@glasserc Do you know where in the code the problem is?
No, not off the top of my head, sorry.
@glasserc This seems to be fixed in the current live playground. Do you know when the next release will be?
Yeah, this got fixed by #581. I just released v0.50.0 which should contain the fix.
No branches or pull requests
Description
I've got two schemas that produce the same resulting shape of data from the form:
They produce two different forms:
schema1:
![image](https://user-images.githubusercontent.com/2970147/26880417-4a12dd3c-4b8c-11e7-8718-d7c1b6e1903f.png)
schema2:
![image](https://user-images.githubusercontent.com/2970147/26880268-cc6a244e-4b8b-11e7-95fc-10cb283ea646.png)
Is this considered a bug in the library? It means that adding a uiSchema
'ui:widget': 'checkboxes'
does not work with schema2.Steps to Reproduce
Apply schemas above to playground.
Expected behavior
Two schemas describing the same shape to produce the same form elements.
Version
0.48.0
The text was updated successfully, but these errors were encountered: