Skip to content

Commit

Permalink
SubiquityServer: Include interactive-sections as a property
Browse files Browse the repository at this point in the history
SubiquityServer is responsible for checking and loading the
interactive-sessions, so it should be responsible for validating
this section as well. Additionally add this to the autoinstall
schema in the docs.
  • Loading branch information
Chris-Peterson444 committed Jan 30, 2024
1 parent f6a7819 commit e29a2a6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoinstall-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"minimum": 1,
"maximum": 1
},
"interactive-sections": {
"type": "array",
"items": {
"type": "string"
}
},
"early-commands": {
"type": "array",
"items": {
Expand Down
6 changes: 6 additions & 0 deletions autoinstall-system-setup-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"minimum": 1,
"maximum": 1
},
"interactive-sections": {
"type": "array",
"items": {
"type": "string"
}
},
"early-commands": {
"type": "array",
"items": {
Expand Down
6 changes: 6 additions & 0 deletions subiquity/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ class SubiquityServer(Application):
"minimum": 1,
"maximum": 1,
},
"interactive-sections": {
"type": "array",
"items": {
"type": "string",
},
},
},
"required": ["version"],
"additionalProperties": True,
Expand Down

0 comments on commit e29a2a6

Please sign in to comment.