UNPKG

angular2-json-schema-form

Version:
32 lines (31 loc) 618 B
{ "schema": { "choice": { "type": "string", "enum": [ "text", "cat" ] }, "text": { "type": "string", "title": "Text" }, "category": { "type": "string", "title": "Category", "enum": [ "Geography", "Entertainment", "History", "Arts", "Science", "Sports" ] } }, "form": [ { "type": "selectfieldset", "key": "choice", "title": "Make a choice", "titleMap": { "text": "Search by text", "cat": "Search by category" }, "items": [ "text", "category" ] }, { "type": "submit", "value": "Submit" } ] }