Person ajax: Difference between revisions
Jump to navigation
Jump to search
Created page with "{ "$ref": "/w/index.php?title=JsonSchema:Basic_person&action=rawn", "properties": { "location": { "type": "object", "title": "Location", "properties": { "city": { "type": "string" }, "state": { "type": "string" }, "citystate": { "type": "string", "description": "This is generated automatically from the previous two fields", "template": "{{city}}, {{state}}"..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{ | { | ||
"$ref": "/w/index.php?title=JsonSchema:Basic_person\u0026action=raw", | |||
"properties": { | |||
"location": { | |||
"type": "object", | |||
"title": "Location", | |||
"properties": { | |||
"city": { | |||
"type": "string" | |||
}, | |||
"state": { | |||
"type": "string" | |||
}, | |||
"citystate": { | |||
"type": "string", | |||
"description": "This is generated automatically from the previous two fields", | |||
"template": "{{city}}, {{state}}", | |||
"watch": { | |||
"city": "person.location.city", | |||
"state": "person.location.state" | |||
} | |||
} | |||
} | |||
}, | |||
"pets": { | |||
"type": "array", | |||
"format": "table", | |||
"title": "Pets", | |||
"uniqueItems": true, | |||
"items": { | |||
"type": "object", | |||
"properties": { | |||
"type": { | |||
"type": "string", | |||
"enum": [ | |||
"cat", | |||
"dog", | |||
"bird", | |||
"reptile", | |||
"other" | |||
], | |||
"default": "dog" | |||
}, | |||
"name": { | |||
"type": "string" | |||
}, | |||
"fixed": { | |||
"type": "boolean", | |||
"title": "spayed / neutered" | |||
} | |||
} | |||
} | |||
}, | |||
"cars": { | |||
"type": "array", | |||
"format": "tabs", | |||
"title": "Cars", | |||
"uniqueItems": false, | |||
"items": { | |||
"type": "object", | |||
"title": "Car", | |||
"properties": { | |||
"manufacturer": { | |||
"type": "string" | |||
}, | |||
"model": { | |||
"type": "string" | |||
} | |||
} | |||
} | |||
} | |||
} | |||
} | } | ||
Latest revision as of 08:08, 4 November 2025
| $ref | "/w/index.php?title=JsonSchema:Basic_person&action=raw" | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| properties |
|