Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
20
Merge Requests
20
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
b2db5730
Commit
b2db5730
authored
Dec 05, 2024
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_parameter_editor: Add sample for object with default for testing
parent
194346f8
Pipeline
#38463
failed with stage
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
0 deletions
+54
-0
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/sample-software-schema/minimal_json_in_xml_demo/instance-input-schema.json.json
.../minimal_json_in_xml_demo/instance-input-schema.json.json
+27
-0
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/sample-software-schema/simpledemo/instance-input-json-in-xml-schema.json.json
...ma/simpledemo/instance-input-json-in-xml-schema.json.json
+27
-0
No files found.
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/sample-software-schema/minimal_json_in_xml_demo/instance-input-schema.json.json
View file @
b2db5730
...
...
@@ -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"
,
...
...
master/bt5/slapos_parameter_editor/SkinTemplateItem/portal_skins/slapos_parameter_editor/sample-software-schema/simpledemo/instance-input-json-in-xml-schema.json.json
View file @
b2db5730
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment