Array: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 9: Line 9:
             "items": {
             "items": {
                 "type": "string",
                 "type": "string",
                 "x-input": "tagmultiselect"
                 "x-input": "OO.ui.TagMultiselectWidget"
             }
             }
         },
         },
Line 15: Line 15:
             "type": "array",
             "type": "array",
             "items": {
             "items": {
                 "$ref": "#\/definitions\/veggie"
                 "$ref": "#\/definitions\/veggie",
                "type": "object"
             }
             }
         }
         }

Latest revision as of 00:00, 15 January 2001

$id"https://example.com/arrays.schema.json"
$schema"http://json-schema.org/draft-07/schema#"
description"A representation of a person, company, organization, or place"
type"object"
properties
fruits
type"array"
items
type"string"
x-input"OO.ui.TagMultiselectWidget"
vegetables
type"array"
items
$ref"#/definitions/veggie"
type"object"
definitions
veggie
type"object"
required
"veggieName"
"veggieLike"
properties
veggieName
type"string"
description"The name of the vegetable."
veggieLike
type"boolean"
description"Do I like this vegetable?"