diff --git a/src/api/json/catalog.json b/src/api/json/catalog.json index b9d5dcfd24b..da1e6ae558e 100644 --- a/src/api/json/catalog.json +++ b/src/api/json/catalog.json @@ -8664,6 +8664,14 @@ "versions": { "v1-alpha.1": "https://deployah.dev/schemas/v1-alpha.1/manifest.json" } + }, + { + "name": "Azure IoT Operations ConfigMap metadata", + "description": "", + "url": "https://www.schemastore.org/aio-configmap-0.3.0-preview.json", + "versions": { + "0.3.0": "https://www.schemastore.org/aio-configmap-0.3.0-preview.json" + } } ] } diff --git a/src/schemas/json/aio-configmap-0.3.0-preview.json b/src/schemas/json/aio-configmap-0.3.0-preview.json new file mode 100644 index 00000000000..bb1c7ae2d4f --- /dev/null +++ b/src/schemas/json/aio-configmap-0.3.0-preview.json @@ -0,0 +1,225 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "ConfigGraph", + "type": "object", + "required": ["connections", "metadata", "moduleRequirements", "operations"], + "properties": { + "connections": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigGraphConnection" + } + }, + "metadata": { + "$ref": "#/definitions/GraphMetadata" + }, + "moduleConfigurations": { + "default": [], + "type": "array", + "items": { + "$ref": "#/definitions/ModuleConfiguration" + } + }, + "moduleRequirements": { + "$ref": "#/definitions/ModuleVersions" + }, + "operations": { + "type": "array", + "items": { + "$ref": "#/definitions/ConfigGraphModule" + } + }, + "schemas": { + "default": [], + "type": "array", + "items": { + "$ref": "#/definitions/SchemaConfiguration" + } + } + }, + "additionalProperties": false, + "definitions": { + "BranchOutputArm": { + "type": "string", + "enum": ["False", "True"] + }, + "ConfigGraphConnection": { + "type": "object", + "required": ["from", "to"], + "properties": { + "from": { + "$ref": "#/definitions/ConfigGraphConnectionFromPoint" + }, + "to": { + "$ref": "#/definitions/ConfigGraphConnectionToPoint" + } + }, + "additionalProperties": false + }, + "ConfigGraphConnectionFromPoint": { + "type": "object", + "required": ["name"], + "properties": { + "arm": { + "anyOf": [ + { + "$ref": "#/definitions/BranchOutputArm" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + }, + "schemaName": { + "type": ["string", "null"] + } + }, + "additionalProperties": false + }, + "ConfigGraphConnectionOperator": { + "type": "string", + "enum": [ + "source", + "map", + "filter", + "branch", + "concatenate", + "accumulate", + "delay", + "sink" + ] + }, + "ConfigGraphConnectionToPoint": { + "type": "object", + "required": ["name"], + "properties": { + "name": { + "type": "string" + } + }, + "additionalProperties": false + }, + "ConfigGraphModule": { + "type": "object", + "required": ["name", "operationType"], + "properties": { + "module": { + "type": ["string", "null"] + }, + "name": { + "type": "string" + }, + "operationType": { + "$ref": "#/definitions/ConfigGraphConnectionOperator" + } + }, + "additionalProperties": false + }, + "ConfigParameters": { + "type": "object", + "required": ["name"], + "properties": { + "default": { + "type": ["string", "null"] + }, + "description": { + "type": ["string", "null"] + }, + "name": { + "type": "string" + }, + "required": { + "default": false, + "type": "boolean" + } + } + }, + "GraphMetadata": { + "type": "object", + "required": ["graphSchemaVersion", "name", "version"], + "properties": { + "description": { + "type": ["string", "null"] + }, + "graphSchemaVersion": { + "type": "string" + }, + "name": { + "type": "string" + }, + "vendor": { + "type": ["string", "null"] + }, + "version": { + "type": "string" + } + }, + "additionalProperties": false + }, + "ModuleConfiguration": { + "type": "object", + "required": ["name", "parameters"], + "properties": { + "name": { + "type": "string" + }, + "parameters": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ConfigParameters" + } + } + } + }, + "ModuleVersionFeature": { + "type": "object", + "required": ["name"], + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": ["string", "null"] + } + }, + "additionalProperties": false + }, + "ModuleVersions": { + "type": "object", + "required": ["apiVersion", "runtimeVersion"], + "properties": { + "apiVersion": { + "type": "string" + }, + "features": { + "type": ["array", "null"], + "items": { + "$ref": "#/definitions/ModuleVersionFeature" + } + }, + "runtimeVersion": { + "type": "string" + } + }, + "additionalProperties": false + }, + "SchemaConfiguration": { + "type": "object", + "required": ["format", "name", "schema"], + "properties": { + "format": { + "type": "string" + }, + "name": { + "type": "string" + }, + "schema": { + "type": "string" + } + } + } + } +}