Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -7506,13 +7506,13 @@
"name": "Shopware CLI Extension Store Configuration",
"description": "Shopware CLI Extension Store Configuration",
"fileMatch": [".shopware-extension.yml", ".shopware-extension.yaml"],
"url": "https://raw.githubusercontent.com/shopware/shopware-cli/main/extension/shopware-extension-schema.json"
"url": "https://raw.githubusercontent.com/shopware/shopware-cli/main/shopware-extension-schema.json"
},
{
"name": "Shopware CLI Project Store Configuration",
"description": "Shopware CLI Project Store Configuration",
"fileMatch": [".shopware-project.yml", ".shopware-project.yaml"],
"url": "https://raw.githubusercontent.com/shopware/shopware-cli/main/shop/shopware-project-schema.json"
"url": "https://raw.githubusercontent.com/shopware/shopware-cli/main/shopware-project-schema.json"
},
{
"name": "Qodana",
Expand Down
30 changes: 30 additions & 0 deletions src/schemas/json/traefik-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,33 @@
},
"type": "object"
},
"staticEncodedCharacters": {
"additionalProperties": false,
"properties": {
"allowEncodedSlash": {
"type": "boolean"
},
"allowEncodedBackSlash": {
"type": "boolean"
},
"allowEncodedNullCharacter": {
"type": "boolean"
},
"allowEncodedSemicolon": {
"type": "boolean"
},
"allowEncodedPercent": {
"type": "boolean"
},
"allowEncodedQuestionMark": {
"type": "boolean"
},
"allowEncodedHash": {
"type": "boolean"
}
},
"type": "object"
},
"staticEntryPoint": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -1039,6 +1066,9 @@
"staticHTTPConfig": {
"additionalProperties": false,
"properties": {
"encodedCharacters": {
"$ref": "#/$defs/staticEncodedCharacters"
},
"encodeQuerySemicolons": {
"type": "boolean"
},
Expand Down
30 changes: 30 additions & 0 deletions src/schemas/json/traefik-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,33 @@
},
"type": "object"
},
"staticEncodedCharacters": {
"additionalProperties": false,
"properties": {
"allowEncodedSlash": {
"type": "boolean"
},
"allowEncodedBackSlash": {
"type": "boolean"
},
"allowEncodedNullCharacter": {
"type": "boolean"
},
"allowEncodedSemicolon": {
"type": "boolean"
},
"allowEncodedPercent": {
"type": "boolean"
},
"allowEncodedQuestionMark": {
"type": "boolean"
},
"allowEncodedHash": {
"type": "boolean"
}
},
"type": "object"
},
"staticEntryPoint": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -1010,6 +1037,9 @@
"staticHTTPConfig": {
"additionalProperties": false,
"properties": {
"encodedCharacters": {
"$ref": "#/$defs/staticEncodedCharacters"
},
"encodeQuerySemicolons": {
"type": "boolean"
},
Expand Down
119 changes: 119 additions & 0 deletions src/schemas/json/zuul.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@
"title": "Final",
"type": "boolean"
},
"group-vars": {
"additionalProperties": {
"type": "object"
},
"title": "Group-Vars",
"type": "object"
},
"host-vars": {
"additionalProperties": {
"type": "object"
Expand Down Expand Up @@ -344,6 +351,102 @@
"title": "JobSemaphoreModel",
"type": "object"
},
"NodesetEntry": {
"additionalProperties": false,
"properties": {
"nodeset": {
"$ref": "#/definitions/NodesetModel"
}
},
"required": ["nodeset"],
"title": "NodesetEntry",
"type": "object"
},
"NodesetModel": {
"additionalProperties": false,
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"nodes": {
"items": {
"$ref": "#/definitions/NodesetNodeModel"
},
"title": "Nodes",
"type": "array"
},
"groups": {
"items": {
"$ref": "#/definitions/NodesetGroupModel"
},
"title": "Groups",
"type": "array"
},
"alternatives": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/definitions/NodesetModel"
}
]
},
"title": "Alternatives",
"type": "array"
}
},
"required": ["name"],
"title": "NodesetModel",
"type": "object"
},
"NodesetNodeModel": {
"additionalProperties": false,
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
],
"title": "Name"
},
"label": {
"title": "Label",
"type": "string"
}
},
"required": ["name", "label"],
"title": "NodesetNodeModel",
"type": "object"
},
"NodesetGroupModel": {
"additionalProperties": false,
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"nodes": {
"items": {
"type": "string"
},
"title": "Nodes",
"type": "array"
}
},
"required": ["name", "nodes"],
"title": "NodesetGroupModel",
"type": "object"
},
"PipelineModel": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -392,6 +495,19 @@
"gate": {
"$ref": "#/definitions/PipelineModel"
},
"merge-mode": {
"title": "Merge-Mode",
"enum": [
"merge",
"merge-resolve",
"merge-recursive",
"merge-ort",
"cherry-pick",
"squash-merge",
"rebase"
],
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
Expand Down Expand Up @@ -551,6 +667,9 @@
{
"$ref": "#/definitions/JobEntry"
},
{
"$ref": "#/definitions/NodesetEntry"
},
{
"$ref": "#/definitions/ProjectEntry"
},
Expand Down
35 changes: 35 additions & 0 deletions src/test/zuul/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
attempts: 1
voting: true
ansible-version: 2.8
group-vars:
all:
ansible_python_interpreter: /usr/bin/python3
host-vars:
primary:
ansible_user: root
Expand Down Expand Up @@ -151,6 +154,7 @@
name: Sample project
queue: test
default-branch: main
merge-mode: squash-merge
description: Description
templates:
- sample-template
Expand All @@ -173,3 +177,34 @@
name: foo
data:
foo: bar

# https://zuul-ci.org/docs/zuul/latest/config/nodeset.html
# nodeset minimal
- nodeset:
name: single-node
nodes:
- name: controller
label: ubuntu-jammy

# nodeset with groups
- nodeset:
name: multi-node
nodes:
- name: controller
label: ubuntu-jammy
- name:
- worker1
- worker2
label: ubuntu-jammy
groups:
- name: workers
nodes:
- worker1
- worker2

# nodeset with alternatives
- nodeset:
name: fallback-nodeset
alternatives:
- single-node
- multi-node