Commit 790d3b22 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Add more complex sample scenarios

parent 9b56a686
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"type": "object", "type": "object",
"description": "Extend simple parameter extension with extra only supported on json-in-xml", "description": "Extend simple parameter extension with extra only supported on json-in-xml",
"additionalProperties": false, "additionalProperties": false,
"required": ["simple-object-is-required"],
"allOf": [ "allOf": [
{ {
"$ref": "instance-input-schema.json#/" "$ref": "instance-input-schema.json#"
}, },
{ {
"properties": { "properties": {
...@@ -56,6 +57,33 @@ ...@@ -56,6 +57,33 @@
} }
} }
}, },
"simple-object-with-required": {
"title": "Example of Single Object",
"description": "Example of Single Object",
"type": "object",
"required": ["sample-object-string"],
"properties": {
"sample-object-string": {
"title": "Example of Simple String on an object",
"description": "Example of Simple String",
"type": "string",
"default": "Simple string"
}
}
},
"simple-object-is-required": {
"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-dict": { "simple-object-dict": {
"title": "Example of multi objects as a Dict", "title": "Example of multi objects as a Dict",
"description": "Example of multi objects as a Dict", "description": "Example of multi objects as a Dict",
......
{ {
"$schema": "http://json-schema.org/draft-04/schema#", "$schema": "http://json-schema.org/draft-07/schema#",
"type": "object", "type": "object",
"description": "Sample paremeters for a Simple Demo", "description": "Sample paremeters for a Simple Demo",
"additionalProperties": false, "additionalProperties": false,
"required": [ "required": [
"simple-string-required" "simple-string-required",
"simple-string-with-enum-required"
], ],
"properties": { "properties": {
"simple-string": { "simple-string": {
...@@ -28,7 +29,18 @@ ...@@ -28,7 +29,18 @@
"title": "Example of Simple String Required", "title": "Example of Simple String Required",
"description": "Example of Simple String", "description": "Example of Simple String",
"type": "string", "type": "string",
"default": "Simple string " "default": "Simple string Required"
},
"simple-string-with-enum-required": {
"title": "Example of Simple String with enum",
"description": "Example of Simple String with enum",
"type": "string",
"enum" : [
"required string A",
"required string B",
"required string C"
],
"default": "required string A"
}, },
"simple-boolean": { "simple-boolean": {
"title": "Example of Simple String", "title": "Example of Simple String",
......
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