Name oneOf: Difference between revisions
Jump to navigation
Jump to search
Created page with "{ "type": "object", "options": { "keep_oneof_values": false }, "properties": { "type": { "type": "string", "options": { "hidden": true } } }, "oneOf": [ { "title": "Full Name", "additionalProperties": false, "properties": { "type": { "type": "string", "enum": [ "fullName" ], "options": { "hidden": true } },..." |
Admin changed the content model of the page JsonSchema:Name oneOf from "wikitext" to "JSON" |
||
| Line 1: | Line 1: | ||
{ | { | ||
"type": "object", | |||
"options": { | |||
"keep_oneof_values": false | |||
}, | |||
"properties": { | |||
"type": { | |||
"type": "string", | |||
"options": { | |||
"hidden": true | |||
} | |||
} | |||
}, | |||
"oneOf": [ | |||
{ | |||
"title": "Full Name", | |||
"additionalProperties": false, | |||
"properties": { | |||
"type": { | |||
"type": "string", | |||
"enum": [ | |||
"fullName" | |||
], | |||
"options": { | |||
"hidden": true | |||
} | |||
}, | |||
"fullName": { | |||
"type": "string", | |||
"title": "Full name" | |||
} | |||
}, | |||
"type": "object", | |||
"options": { | |||
"keep_oneof_values": false | |||
} | |||
}, | |||
{ | |||
"title": "First and Last Name", | |||
"additionalProperties": false, | |||
"properties": { | |||
"type": { | |||
"type": "string", | |||
"enum": [ | |||
"first-last-name" | |||
], | |||
"options": { | |||
"hidden": true | |||
} | |||
}, | |||
"firstName": { | |||
"type": "string", | |||
"title": "First name" | |||
}, | |||
"lastName": { | |||
"type": "string", | |||
"title": "Last name" | |||
} | |||
}, | |||
"type": "object", | |||
"options": { | |||
"keep_oneof_values": false | |||
} | |||
}, | |||
{ | |||
"title": "Other name", | |||
"additionalProperties": false, | |||
"properties": { | |||
"type": { | |||
"type": "string", | |||
"enum": [ | |||
"other-name" | |||
], | |||
"options": { | |||
"hidden": true | |||
} | |||
}, | |||
"otherFirstName": { | |||
"type": "string" | |||
}, | |||
"otherLastName": { | |||
"type": "string" | |||
} | |||
}, | |||
"type": "object", | |||
"options": { | |||
"keep_oneof_values": false | |||
} | |||
}, | |||
{ | |||
"title": "More name", | |||
"additionalProperties": false, | |||
"properties": { | |||
"type": { | |||
"type": "string", | |||
"enum": [ | |||
"more-name" | |||
], | |||
"options": { | |||
"hidden": true | |||
} | |||
}, | |||
"moreFullName": { | |||
"type": "string" | |||
} | |||
}, | |||
"type": "object", | |||
"options": { | |||
"keep_oneof_values": false | |||
} | |||
} | |||
] | |||
} | } | ||
Latest revision as of 08:09, 4 November 2025
| type | "object" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| options |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| properties |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| oneOf |
|