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",
"description": "Extend simple parameter extension with extra only supported on json-in-xml",
"additionalProperties": false,
"required": ["simple-object-is-required"],
"allOf": [
{
"$ref": "instance-input-schema.json#/"
"$ref": "instance-input-schema.json#"
},
{
"properties": {
......@@ -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": {
"title": "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",
"description": "Sample paremeters for a Simple Demo",
"additionalProperties": false,
"required": [
"simple-string-required"
"simple-string-required",
"simple-string-with-enum-required"
],
"properties": {
"simple-string": {
......@@ -28,7 +29,18 @@
"title": "Example of Simple String Required",
"description": "Example of Simple 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": {
"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