Recursive: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
{
{
     "$ref": "#\/definitions\/person",
     "$ref": "#\/definitions\/person",
    "type": "object",
    "title": "Person",
     "x-layout": "paged",
     "x-layout": "paged",
     "definitions": {
     "definitions": {
         "person": {
         "person": {
            "title": "Person",
             "type": "object",
             "type": "object",
             "id": "person",
             "id": "person",
Line 14: Line 15:
             "patternProperties": {
             "patternProperties": {
                 "^cousin_[0-9]+$": {
                 "^cousin_[0-9]+$": {
                     "$ref": "#\/definitions\/person"
                    "title": "Cousin",
                     "$ref": "#\/definitions\/person",
                    "type": "object"
                 }
                 }
             },
             },
Line 28: Line 31:
                 "bestFriend": {
                 "bestFriend": {
                     "title": "best friend",
                     "title": "best friend",
                     "options": {
                     "x-input": "OO.ui.ButtonSelectWidget",
                        "input": {
                            "name": "button-select"
                        }
                    },
                     "oneOf": [
                     "oneOf": [
                         {
                         {
Line 40: Line 39:
                         {
                         {
                             "title": "person",
                             "title": "person",
                             "$ref": "#\/definitions\/person"
                             "$ref": "#\/definitions\/person",
                            "type": "object"
                         }
                         }
                     ]
                     ]
Line 48: Line 48:
                     "items": {
                     "items": {
                         "title": "Coworker",
                         "title": "Coworker",
                         "$ref": "#\/definitions\/person"
                         "$ref": "#\/definitions\/person",
                        "type": "object"
                     }
                     }
                 },
                 },
                 "mother": {
                 "mother": {
                     "title": "mother",
                     "title": "mother",
                     "$ref": "#\/definitions\/person"
                     "$ref": "#\/definitions\/person",
                    "type": "object"
                 }
                 }
             }
             }

Latest revision as of 00:00, 15 January 2001

$ref"#/definitions/person"
type"object"
title"Person"
x-layout"paged"
definitions
person
type"object"
id"person"
x-default-properties
"fname"
"lname"
"coworkers"
patternProperties
^cousin_[0-9]+$
title"Cousin"
$ref"#/definitions/person"
type"object"
properties
fname
title"first name"
type"string"
lname
title"last name"
type"string"
bestFriend
title"best friend"
x-input"OO.ui.ButtonSelectWidget"
oneOf
title"none"
type"null"
title"person"
$ref"#/definitions/person"
type"object"
coworkers
type"array"
items
title"Coworker"
$ref"#/definitions/person"
type"object"
mother
title"mother"
$ref"#/definitions/person"
type"object"
year
type"integer"
pattern"^[0-9]{4}$"
minimum1900
maximum2100