Commit b2db5730 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_parameter_editor: Add sample for object with default for testing

parent 194346f8
Pipeline #38463 failed with stage
in 0 seconds
......@@ -190,6 +190,33 @@
},
"type": "object"
},
"simple-object-with-default": {
"title": "Example of multi objects as a Dict with default",
"description": "Example of multi objects as a Dict with default",
"type": "object",
"patternProperties": {
".*": {
"properties": {
"simple-object-with-default-first-field": {
"title": "simple-object-with-default-first-field",
"description": "simple-object-with-default-first-field description",
"type": "string"
},
"simple-object-with-default-second-field": {
"title": "simple-object-with-default-seccong-field",
"description": "simple-object-with-default-second-field description",
"type": "string"
}
},
"type": "object"
}
},
"default": {
"1": {
"simple-object-with-default-first-field": "sample value for the first field"
}
}
},
"simple-object-dict": {
"title": "Example of multi objects as a Dict",
"description": "Example of multi objects as a Dict",
......
......@@ -131,6 +131,33 @@
},
"type": "object"
},
"simple-object-with-default": {
"title": "Example of multi objects as a Dict with default",
"description": "Example of multi objects as a Dict with default",
"type": "object",
"patternProperties": {
".*": {
"properties": {
"simple-object-with-default-first-field": {
"title": "simple-object-with-default-first-field",
"description": "simple-object-with-default-first-field description",
"type": "string"
},
"simple-object-with-default-second-field": {
"title": "simple-object-with-default-seccong-field",
"description": "simple-object-with-default-second-field description",
"type": "string"
}
},
"type": "object"
}
},
"default": {
"1": {
"simple-object-with-default-first-field": "sample value for the first field"
}
}
},
"simple-object-dict": {
"title": "Example of multi objects as a Dict",
"description": "Example of multi objects as a Dict",
......
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