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
42 changes: 41 additions & 1 deletion src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5036,11 +5036,29 @@
"fileMatch": ["*.ai-kit.step.yaml"],
"url": "https://raw.githubusercontent.com/em-al-wi/proactions-schema/main/schema/partial-step.schema.json"
},
{
"name": "Problem package format",
"description": "Problem package metadata for programming tasks in the Kattis/CLICS problem package format",
"fileMatch": ["problem.yml", "problem.yaml"],
"url": "https://raw.githubusercontent.com/RagnarGrootKoerkamp/BAPCtools/refs/heads/main/bapctools/resources/support/schemas/problem_yaml_schema.json"
},
{
"name": "Problem package generators",
"description": "Generators for programming tasks in the Kattis/CLICS problem package format",
"fileMatch": ["generators.yml", "generators.yaml"],
"url": "https://raw.githubusercontent.com/RagnarGrootKoerkamp/BAPCtools/refs/heads/master/support/schemas/generators_yaml_schema.json"
"url": "https://raw.githubusercontent.com/RagnarGrootKoerkamp/BAPCtools/refs/heads/main/bapctools/resources/support/schemas/generators_yaml_schema.json"
},
{
"name": "Problem package submissions",
"description": "Submissions metadata for programming tasks in the Kattis/CLICS problem package format",
"fileMatch": ["submissions.yml", "submissions.yaml"],
"url": "https://raw.githubusercontent.com/RagnarGrootKoerkamp/BAPCtools/refs/heads/main/bapctools/resources/support/schemas/submissions_yaml_schema.json"
},
{
"name": "Problem package test group metadata",
"description": "Test group metadata for programming tasks in the Kattis/CLICS problem package format",
"fileMatch": ["test_group.yml", "test_group.yaml"],
"url": "https://raw.githubusercontent.com/RagnarGrootKoerkamp/BAPCtools/refs/heads/main/bapctools/resources/support/schemas/test_group_yaml_schema.json"
},
{
"name": "project.json",
Expand Down Expand Up @@ -8584,6 +8602,19 @@
],
"url": "https://raw.githubusercontent.com/wiremock/wiremock/refs/heads/master/schemas/wiremock-stub-mapping-or-mappings.json"
},
{
"name": "WireMock message stub mapping",
"description": "WireMock single or multiple async message stub mapping JSON. See https://wiremock.org/docs/messaging/stubbing/",
"fileMatch": [
"wiremock-message-stub-mapping.yml",
"wiremock-message-stub-mapping.yaml",
"message-stubs.json",
"message-stub-mappings.json",
"message-stubs.yaml",
"message-stub-mappings.yaml"
],
"url": "https://raw.githubusercontent.com/wiremock/wiremock/refs/heads/master/schemas/wiremock-message-stub-mapping-or-mappings.json"
},
{
"name": "WireMock CLI local service configuration",
"description": "WireMock CLI and Runner local service config file format",
Expand Down Expand Up @@ -9166,6 +9197,15 @@
"**/models/**/*.vespertide.yml"
],
"url": "https://www.schemastore.org/vespertide-model.json"
},
{
"name": "openHAB",
"description": "Configuration files for openHAB",
"fileMatch": ["**/conf/yaml/**/*.yml", "**/conf/yaml/**/*.yaml"],
"url": "https://www.schemastore.org/openhab-5.1.json",
"versions": {
"5.1": "https://www.schemastore.org/openhab-5.1.json"
}
}
]
}
5 changes: 5 additions & 0 deletions src/negative_test/openhab-5.1/001_missing_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# yaml-language-server: $schema=../../schemas/json/openhab-5.1.json

items:
MyItem:
type: String
9 changes: 9 additions & 0 deletions src/negative_test/openhab-5.1/002_dimension_invalid_item.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# yaml-language-server: $schema=../../schemas/json/openhab-5.1.json

version: 1

items:
# This item has a dimension set even though it's not a Number
MyWrongNumberItem:
type: Switch
dimension: 'W'
11 changes: 11 additions & 0 deletions src/negative_test/openhab-5.1/003_dimension_invalid_group.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# yaml-language-server: $schema=../../schemas/json/openhab-5.1.json

version: 1

items:
# This group has a dimension set even though it's not a Number
MyWrongGroupItem:
type: Group
group:
type: Switch
dimension: 'W'
11 changes: 11 additions & 0 deletions src/negative_test/openhab-5.1/004_thing_channel_dimension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# yaml-language-server: $schema=../../schemas/json/openhab-5.1.json

version: 1

things:
# If type is set itemType can not be set
my:thing:uuid:
channels:
channel_1:
itemType: Switch
itemDimension: W
11 changes: 11 additions & 0 deletions src/negative_test/openhab-5.1/005_thing_channel_type_invalid1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# yaml-language-server: $schema=../../schemas/json/openhab-5.1.json

version: 1

things:
# If type is set kind can not be set
my:thing:uuid:
channels:
channel_1:
type: switch
kind: state
11 changes: 11 additions & 0 deletions src/negative_test/openhab-5.1/006_thing_channel_type_invalid2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# yaml-language-server: $schema=../../schemas/json/openhab-5.1.json

version: 1

things:
# If type is set itemType can not be set
my:thing:uuid:
channels:
channel_1:
type: switch
itemType: String
11 changes: 11 additions & 0 deletions src/negative_test/openhab-5.1/007_thing_channel_type_invalid3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# yaml-language-server: $schema=../../schemas/json/openhab-5.1.json

version: 1

things:
# If type is set itemType can not be set
my:thing:uuid:
channels:
channel_1:
type: switch
itemDimension: String
2 changes: 2 additions & 0 deletions src/schema-validation.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
"lsdlschema-4.1.json",
"lsdlschema.json",
"nodemon.json",
"openhab-5.1.json",
"partial-pyright.json",
"pep-723.json",
"pyproject.json",
Expand Down Expand Up @@ -298,6 +299,7 @@
"license-report-config.json",
"openweather.current.json",
"openweather.roadrisk.json",
"openhab-5.1.json",
"specif-1.1.json",
"ctfd.json",
"zarf.json",
Expand Down
1 change: 0 additions & 1 deletion src/schemas/json/github-workflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,6 @@
}
}
],
"required": ["description"],
"additionalProperties": false
}
},
Expand Down
51 changes: 51 additions & 0 deletions src/schemas/json/host.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,54 @@
},
"additionalProperties": false
},
"mcp-extension": {
"type": "object",
"description": "Configuration settings for 'mcp' triggers.",
"properties": {
"instructions": {
"description": "Describes to clients how to access the remote MCP server.",
"type": "string"
},
"serverName": {
"description": "A friendly name for the remote MCP server.",
"type": "string"
},
"serverVersion": {
"description": "Current version of the remote MCP server.",
"type": "string"
},
"encryptClientState": {
"description": "Determines if client state is encrypted. Defaults to true. Setting to false may be useful for debugging and test scenarios but isn't recommended for production.",
"type": "boolean",
"default": true
},
"messageOptions": {
"description": "COptions object for the message endpoint in the SSE transport.",
"type": "object",
"properties": {
"useAbsoluteUriForEndpoint": {
"description": "If set to false, the message endpoint is provided as a relative URI during initial connections over the SSE transport. If set to true, the message endpoint is returned as an absolute URI. Using a relative URI isn't recommended unless you have a specific reason to do so.",
"type": "boolean",
"default": false
}
},
"additionalProperties": false
},
"system": {
"description": "COptions object for the message endpoint in the SSE transport.",
"type": "object",
"properties": {
"webhookAuthorizationLevel": {
"description": "Defines the authorization level required for the webhook endpoint. Defaults to \"System\". Allowed values are \"System\" and \"Anonymous\". When you set the value to \"Anonymous\", an access key is no longer required for requests.",
"enum": ["System", "Anonymous"],
"default": "System"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"version-1": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1480,6 +1528,9 @@
}
},
"additionalProperties": false
},
"mcp": {
"$ref": "#/definitions/mcp-extension"
}
},
"additionalProperties": false
Expand Down
Loading