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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos.core
Commits
790d3b22
Commit
790d3b22
authored
Oct 18, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Add more complex sample scenarios
parent
9b56a686
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
5 deletions
+45
-5
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/instance-input-json-in-xml-schema.json.json
...ma/simpledemo/instance-input-json-in-xml-schema.json.json
+30
-2
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/instance-input-schema.json.json
...oftware-schema/simpledemo/instance-input-schema.json.json
+15
-3
No files found.
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/instance-input-json-in-xml-schema.json.json
View file @
790d3b22
{
"$schema"
:
"http://json-schema.org/draft-0
4
/schema#"
,
"$schema"
:
"http://json-schema.org/draft-0
7
/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"
,
...
...
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/sample-software-schema/simpledemo/instance-input-schema.json.json
View file @
790d3b22
{
"$schema"
:
"http://json-schema.org/draft-0
4
/schema#"
,
"$schema"
:
"http://json-schema.org/draft-0
7
/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"
,
...
...
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