Skip to content

Commit

Permalink
feat: support multiple bonjourQueries per query input field #87
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Aug 19, 2024
1 parent b2212b7 commit 64772ae
Showing 1 changed file with 38 additions and 23 deletions.
61 changes: 38 additions & 23 deletions assets/manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,30 +114,17 @@
"description": "If the device or software for your module supports bonjour announcements, Companion will offer an easy way to watch for these announcements.\nEach query you define must have a matching config field of type 'bonjour-device' with the same name",
"patternProperties": {
"": {
"type": "object",
"title": "ModuleBonjourQuery",
"description": "",
"properties": {
"type": {
"type": "string"
},
"protocol": {
"type": "string",
"enum": ["tcp", "udp"]
"oneOf": [
{
"$ref": "#/definitions/bonjourQuery"
},
"txt": {
"type": "object",
"description": "Match on any txt values returned in the query. This is useful to filter out devices of the same 'type' that are not supported",
"patternProperties": {
"": {
"type": "string"
}
},
"additionalProperties": false
{
"type": "array",
"items": {
"$ref": "#/definitions/bonjourQuery"
}
}
},
"required": ["type", "protocol"],
"additionalProperties": false
]
}
},
"additionalProperties": false
Expand All @@ -159,5 +146,33 @@
"manufacturer",
"products",
"keywords"
]
],
"definitions": {
"bonjourQuery": {
"type": "object",
"title": "ModuleBonjourQuery",
"description": "",
"properties": {
"type": {
"type": "string"
},
"protocol": {
"type": "string",
"enum": ["tcp", "udp"]
},
"txt": {
"type": "object",
"description": "Match on any txt values returned in the query. This is useful to filter out devices of the same 'type' that are not supported",
"patternProperties": {
"": {
"type": "string"
}
},
"additionalProperties": false
}
},
"required": ["type", "protocol"],
"additionalProperties": false
}
}
}

0 comments on commit 64772ae

Please sign in to comment.