Person: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
Created page with "{ "$ref": "/w/index.php?title=JsonSchema:Basic_person&action=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}}",..."
 
Admin changed the content model of the page JsonSchema:Person from "wikitext" to "JSON"
 
Line 1: Line 1:
{
{
  "$ref": "/w/index.php?title=JsonSchema:Basic_person&action=raw",
"$ref": "/w/index.php?title=JsonSchema:Basic_person\u0026action=raw",
  "properties": {
"properties": {
    "location": {
"location": {
      "type": "object",
"type": "object",
      "title": "Location",
"title": "Location",
      "properties": {
"properties": {
        "city": {
"city": {
          "type": "string"
"type": "string"
        },
},
        "state": {
"state": {
          "type": "string"
"type": "string"
        },
},
        "citystate": {
"citystate": {
          "type": "string",
"type": "string",
          "description": "This is generated automatically from the previous two fields",
"description": "This is generated automatically from the previous two fields",
          "template": "{{city}}, {{state}}",
"template": "{{city}}, {{state}}",
          "watch": {
"watch": {
            "city": "person.location.city",
"city": "person.location.city",
            "state": "person.location.state"
"state": "person.location.state"
          }
}
        }
}
      }
}
    },
},
    "pets": {
"pets": {
      "type": "array",
"type": "array",
      "format": "table",
"format": "table",
      "title": "Pets",
"title": "Pets",
      "uniqueItems": true,
"uniqueItems": true,
      "items": {
"items": {
        "type": "object",
"type": "object",
        "properties": {
"properties": {
          "type": {
"type": {
            "type": "string",
"type": "string",
            "enum": [
"enum": [
              "cat",
"cat",
              "dog",
"dog",
              "bird",
"bird",
              "reptile",
"reptile",
              "other"
"other"
            ],
],
            "default": "dog"
"default": "dog"
          },
},
          "name": {
"name": {
            "type": "string"
"type": "string"
          },
},
          "fixed": {
"fixed": {
            "type": "boolean",
"type": "boolean",
            "title": "spayed / neutered"
"title": "spayed / neutered"
          }
}
        }
}
      }
}
    },
},
    "cars": {
"cars": {
      "type": "array",
"type": "array",
      "format": "tabs",
"format": "tabs",
      "title": "Cars",
"title": "Cars",
      "uniqueItems": false,
"uniqueItems": false,
      "items": {
"items": {
        "type": "object",
"type": "object",
        "title": "Car",
"title": "Car",
        "properties": {
"properties": {
          "manufacturer": {
"manufacturer": {
            "type": "string"
"type": "string"
          },
},
          "model": {
"model": {
            "type": "string"
"type": "string"
          }
}
        }
}
      }
}
    }
}
  }
}
}
}

Latest revision as of 22:21, 4 November 2025

$ref"/w/index.php?title=JsonSchema:Basic_person&action=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"
uniqueItemstrue
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"
uniqueItemsfalse
items
type"object"
title"Car"
properties
manufacturer
type"string"
model
type"string"