Name oneOf: Difference between revisions

From Wikisphere
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",
"type": "object",
  "options": {
"options": {
    "keep_oneof_values": false
"keep_oneof_values": false
  },
},
  "properties": {
"properties": {
    "type": {
"type": {
      "type": "string",
"type": "string",
      "options": {
"options": {
        "hidden": true
"hidden": true
      }
}
    }
}
  },
},
  "oneOf": [
"oneOf": [
    {
{
      "title": "Full Name",
"title": "Full Name",
      "additionalProperties": false,
"additionalProperties": false,
      "properties": {
"properties": {
        "type": {
"type": {
          "type": "string",
"type": "string",
          "enum": [
"enum": [
            "fullName"
"fullName"
          ],
],
          "options": {
"options": {
            "hidden": true
"hidden": true
          }
}
        },
},
        "fullName": {
"fullName": {
          "type": "string",
"type": "string",
          "title": "Full name"
"title": "Full name"
        }
}
      },
},
      "type": "object",
"type": "object",
      "options": {
"options": {
        "keep_oneof_values": false
"keep_oneof_values": false
      }
}
    },
},
    {
{
      "title": "First and Last Name",
"title": "First and Last Name",
      "additionalProperties": false,
"additionalProperties": false,
      "properties": {
"properties": {
        "type": {
"type": {
          "type": "string",
"type": "string",
          "enum": [
"enum": [
            "first-last-name"
"first-last-name"
          ],
],
          "options": {
"options": {
            "hidden": true
"hidden": true
          }
}
        },
},
        "firstName": {
"firstName": {
          "type": "string",
"type": "string",
          "title": "First name"
"title": "First name"
        },
},
        "lastName": {
"lastName": {
          "type": "string",
"type": "string",
          "title": "Last name"
"title": "Last name"
        }
}
      },
},
      "type": "object",
"type": "object",
      "options": {
"options": {
        "keep_oneof_values": false
"keep_oneof_values": false
      }
}
    },
},
    {
{
      "title": "Other name",
"title": "Other name",
      "additionalProperties": false,
"additionalProperties": false,
      "properties": {
"properties": {
        "type": {
"type": {
          "type": "string",
"type": "string",
          "enum": [
"enum": [
            "other-name"
"other-name"
          ],
],
          "options": {
"options": {
            "hidden": true
"hidden": true
          }
}
        },
},
        "otherFirstName": {
"otherFirstName": {
          "type": "string"
"type": "string"
        },
},
        "otherLastName": {
"otherLastName": {
          "type": "string"
"type": "string"
        }
}
      },
},
      "type": "object",
"type": "object",
      "options": {
"options": {
        "keep_oneof_values": false
"keep_oneof_values": false
      }
}
    },
},
    {
{
      "title": "More name",
"title": "More name",
      "additionalProperties": false,
"additionalProperties": false,
      "properties": {
"properties": {
        "type": {
"type": {
          "type": "string",
"type": "string",
          "enum": [
"enum": [
            "more-name"
"more-name"
          ],
],
          "options": {
"options": {
            "hidden": true
"hidden": true
          }
}
        },
},
        "moreFullName": {
"moreFullName": {
          "type": "string"
"type": "string"
        }
}
      },
},
      "type": "object",
"type": "object",
      "options": {
"options": {
        "keep_oneof_values": false
"keep_oneof_values": false
      }
}
    }
}
  ]
]
}
}

Latest revision as of 08:09, 4 November 2025

type"object"
options
keep_oneof_valuesfalse
properties
type
type"string"
options
hiddentrue
oneOf
title"Full Name"
additionalPropertiesfalse
properties
type
type"string"
enum
"fullName"
options
hiddentrue
fullName
type"string"
title"Full name"
type"object"
options
keep_oneof_valuesfalse
title"First and Last Name"
additionalPropertiesfalse
properties
type
type"string"
enum
"first-last-name"
options
hiddentrue
firstName
type"string"
title"First name"
lastName
type"string"
title"Last name"
type"object"
options
keep_oneof_valuesfalse
title"Other name"
additionalPropertiesfalse
properties
type
type"string"
enum
"other-name"
options
hiddentrue
otherFirstName
type"string"
otherLastName
type"string"
type"object"
options
keep_oneof_valuesfalse
title"More name"
additionalPropertiesfalse
properties
type
type"string"
enum
"more-name"
options
hiddentrue
moreFullName
type"string"
type"object"
options
keep_oneof_valuesfalse