json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

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

Closed damonpu closed 7 years ago

damonpu commented 7 years ago

{ "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 commented 7 years ago

@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 commented 7 years ago

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