UNPKG

angular2-json-schema-form

Version:
29 lines (28 loc) 541 B
{ "schema": { "text": { "type": "string", "title": "Text" }, "category": { "type": "string", "title": "Category", "enum": [ "Geography", "Entertainment", "History", "Arts", "Science", "Sports" ] } }, "form": [ { "type": "selectfieldset", "title": "Make a choice", "items": [ { "key": "text", "legend": "Search by text" }, { "key": "category", "legend": "Search by category" } ] }, { "type": "submit", "title": "Submit" } ] }