Skip to content

the second level array can't be display if there is a boolean property in the object #912

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

Closed
damonpu opened this issue Jun 28, 2017 · 2 comments

Comments

@damonpu
Copy link

damonpu commented Jun 28, 2017

{ "type": "object", "title": "Comment", "required": [ "comments" ], "properties": { "comments": { "type": "array", "maxItems": 2, "items": { "type": "object", "properties": { "name": { "title": "Name", "type": "string" }, "email": { "title": "Email", "type": "string", "pattern": "^\\S+@\\S+$", "description": "Email will be used for evil." }, "array2" : { "type":"array", "items":{ "type":"object", "properties": { "name": { "title": "Name", "type": "boolean" } } } }, "spam": { "title": "Spam", "type": "boolean", "default": true }, "comment": { "title": "Comment", "type": "string", "maxLength": 20, "validationMessage": "Don't be greedy!" } }, "required": [ "name", "comment" ] } } } }

Description
we try to use this tools to implement something for QA to generate json data, there is an issue when the schema have two level array and the second level array contain an object that has boolean type property, please use the json I post for testing

@json-schema-form/angular-schema-form-lead

@donalmurtagh
Copy link
Contributor

donalmurtagh commented Jun 28, 2017

@damonpu Could you create a Plunker demo that reproduces your issue? You could fork this demo, so that you don't have to create everything from scratch.

See this issue for an example of how (IMO) issues should be reported.

@damonpu
Copy link
Author

damonpu commented Jun 29, 2017

should be the version issue, we now use the same version as the demo and the issue resolved, so close the issue, thanks for the help

@damonpu damonpu closed this as completed Jun 29, 2017
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