Commit 8393d3c4 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: (sample) Add objects types on sample files

parent 59b5ce6b
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
"default": "Simple string", "default": "Simple string",
"textarea": true "textarea": true
}, },
"simple-integer": { "simple-integer": {
"title": "Example of Simple Integer", "title": "Example of Simple Integer",
"description": "Example of Simple Integer", "description": "Example of Simple Integer",
"type": "integer", "type": "integer",
"default": 1 "default": 1
}, },
"simple-integer-with-enum": { "simple-integer-with-enum": {
"title": "Example of Simple Integer with enum", "title": "Example of Simple Integer with enum",
"description": "Example of Simple Integer with enum", "description": "Example of Simple Integer with enum",
"type": "integer", "type": "integer",
...@@ -55,13 +55,13 @@ ...@@ -55,13 +55,13 @@
17 17
] ]
}, },
"simple-numeric-integer": { "simple-numeric-integer": {
"title": "Example of Simple Numeric as integer", "title": "Example of Simple Numeric as integer",
"description": "Example of Simple Numeric as Interger", "description": "Example of Simple Numeric as Interger",
"type": "number", "type": "number",
"default": 1.0 "default": 1.0
}, },
"simple-numeric-integer-enum": { "simple-numeric-integer-enum": {
"title": "Example of Simple Numeric as integer", "title": "Example of Simple Numeric as integer",
"description": "Example of Simple Numeric as Interger", "description": "Example of Simple Numeric as Interger",
"type": "number", "type": "number",
...@@ -94,6 +94,80 @@ ...@@ -94,6 +94,80 @@
1.25, 1.25,
1.5 1.5
] ]
},
"simple-array-of-string": {
"title": "Example of Simple array of String",
"description": "Example of Array of String",
"type": "array",
"items": {"type": "string"}
},
"simple-array-of-integer": {
"title": "Example of Simple array of Integer",
"description": "Example of Array of Interger",
"type": "array",
"items": {"type": "integer"}
},
"simple-array-of-number": {
"title": "Example of Simple array of Numbers",
"description": "Example of Array of Numbers",
"type": "array",
"items": {"type": "number"}
},
"simple-object": {
"title": "Example of Single Object",
"description": "Example of Single Object",
"type": "object",
"properties": {
"sample-object-string": {
"title": "Example of Simple String on an object",
"description": "Example of Simple String",
"type": "string",
"default": "Simple string "
},
"simple-object-with-integer": {
"title": "Example of Simple Integer",
"description": "Example of Simple Integer",
"type": "integer",
"default": 1
},
"simple-object-with-integer-with-enum": {
"title": "Example of Simple Integer with enum",
"description": "Example of Simple Integer with enum",
"type": "integer",
"default": 1,
"enum": [
1,
2
]
}
}
},
"simple-object-dict": {
"title": "Example of multi objects as a Dict",
"description": "Example of multi objects as a Dict",
"type": "object",
"patternProperties": {
".*": {
"properties": {
"simple-object-dict-string-example": {
"title": "Example of the String as part of Object",
"description": "Example of the String as part of Object",
"type": "string",
"default": ""
},
"simple-object-dict-string-with-enum": {
"title": "Example of the String as part of Object with Enum",
"description": "Example of the String as part of Object with Enum",
"type": "string",
"default": "String Sample A",
"enum": [
"String Sample A",
"String Sample B"
]
}
}
}
}
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment