Bookstore: Difference between revisions

From Wikisphere
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 3: Line 3:
     "type": "object",
     "type": "object",
     "title": "Bookstore",
     "title": "Bookstore",
    "x-layout": "paged_",
     "definitions": {
     "definitions": {
         "newPropertySchema": {
         "newPropertySchema": {
Line 40: Line 39:
                         "json"
                         "json"
                     ],
                     ],
                     "x-input": "RadioSelectInputWidget",
                     "x-input": "OO.ui.RadioSelectInputWidget",
                     "x-enum-titles": [
                     "x-enum-titles": [
                         "Text",
                         "Text",
Line 70: Line 69:
             "title": "books",
             "title": "books",
             "type": "array",
             "type": "array",
            "x-layout": "tabs",
             "items": {
             "items": {
                 "type": "object",
                 "type": "object",
                 "title": "book",
                 "title": "book",
                 "additionalProperties": true,
                 "additionalProperties": true,
                 "x-ui-schema": {
                 "x-additional-properties-ui": {
                    "$ref": "#\/definitions\/newPropertySchema"
                    "schema": {
                        "$ref": "#\/definitions\/newPropertySchema"
                    },
                    "name": "NewProperty",
                    "label": "New property"
                 },
                 },
                 "properties": {
                 "properties": {
                     "Title": {
                     "Title": {
                        "type": "string"
                    },
                    "Price": {
                        "type": "number"
                    },
                    "ISBN": {
                        "type": "string"
                    },
                    "Genre": {
                         "type": "string"
                         "type": "string"
                     },
                     },
                     "Author": {
                     "Author": {
                         "type": "array",
                         "type": "array",
                         "title": "authors",
                         "title": "",
                        "x-layout": "booklet",
                        "x-collapsible": true,
                         "items": {
                         "items": {
                             "type": "object",
                             "type": "object",
Line 105: Line 102:
                             }
                             }
                         }
                         }
                    },
                    "Price": {
                        "type": "number"
                    },
                    "ISBN": {
                        "type": "string"
                    },
                    "Genre": {
                        "type": "string"
                     }
                     }
                 }
                 }

Latest revision as of 00:00, 15 January 2001

$schema"http://json-schema.org/draft-04/schema#"
type"object"
title"Bookstore"
definitions
newPropertySchema
title"New property"
type"object"
required
"name"
"type"
"multiple"
properties
name
title"Property name"
type"string"
pattern"^[a-zA-Z_][a-zA-Z0-9_]*$"
description"Valid identifier"
type
title"type"
type"string"
description"Select the type of property"
enum
"text"
"number"
"integer"
"date"
"datetime-local"
"time"
"boolean"
"textarea"
"email"
"color"
"range"
"tel"
"url"
"json"
x-input"OO.ui.RadioSelectInputWidget"
x-enum-titles
"Text"
"Number"
"Integer"
"Date"
"Datetime-local"
"Time"
"Boolean"
"Textarea"
"Email"
"Color"
"Range"
"Tel"
"Url"
"Json"
multiple
title"multiple"
type"boolean"
description"allows multiple values"
properties
Book
title"books"
type"array"
x-layout"tabs"
items
type"object"
title"book"
additionalPropertiestrue
x-additional-properties-ui
schema
$ref"#/definitions/newPropertySchema"
name"NewProperty"
label"New property"
properties
Title
type"string"
Author
type"array"
title""
x-layout"booklet"
x-collapsibletrue
items
type"object"
title"author"
properties
FirstName
type"string"
Surname
type"string"
Price
type"number"
ISBN
type"string"
Genre
type"string"