{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://cpobjects.mycpl.net/schema/config.json", "title": "Tenant Config", "description": "Configuration object for settings", "type": "object", "properties": { "token": { "type": "string", "description": "Unique token for the configuration" }, "name": { "type": "string", "description": "Name of the configuration" }, "value": { "type": "string", "description": "Configuration value" }, "type": { "enum": ["environment", "integration"], "description": "Type of configuration" } }, "required": [ "token", "value", "type" ], "oneOf": [ { "title": "Environment Config", "properties": { "type": { "const": "environment" } } }, { "title": "Integration Config", "properties": { "type": { "const": "integration" }, "connector": { "$ref": "./cgc/enums/connector.json" } }, "required": ["connector"] } ], "discriminator": { "propertyName": "type" } }