diff --git a/schemas/vector/externalToOsmTagMapping/v1.schema.json b/schemas/vector/externalToOsmTagMapping/v1.schema.json new file mode 100644 index 00000000..b008ee7f --- /dev/null +++ b/schemas/vector/externalToOsmTagMapping/v1.schema.json @@ -0,0 +1,67 @@ +{ + "$id": "https://mapcolonies.com/vector/externalToOsmTagMapping/v1", + "type": "object", + "title": "vectorExternalToOsmTagMappingV1", + "description": "Mapping configuration for external vector data to OSM tags", + "allOf": [ + { "$ref": "https://mapcolonies.com/common/boilerplate/v2" }, + { "$ref": "#/definitions/databases" }, + { "$ref": "#/definitions/appSchema" } + ], + "definitions": { + "databases": { + "type": "object", + "properties": { + "db": { + "type": "object", + "required": ["redis"], + "properties": { + "redis": { + "allOf": [ + { "$ref": "https://mapcolonies.com/common/redis/v2" }, + { + "type": "object", + "properties": { + "connectTimeoutMs": { + "type": "number", + "x-env-value": "REDIS_CONNECT_TIMEOUT", + "default": 5000, + "minimum": 500 + } + }, + "required": ["connectTimeoutMs"] + } + ] + } + } + } + } + }, + "appSchema": { + "type": "object", + "properties": { + "application": { + "type": "object", + "required": ["hashKey"], + "properties": { + "hashKey": { + "type": "object", + "required": ["enabled"], + "properties": { + "enabled": { "type": "boolean", "x-env-value": "APP_HASHKEY_ENABLED" }, + "value": { "type": "string", "x-env-value": "APP_HASHKEY_VALUE" } + } + } + } + }, + "schema": { + "type": "object", + "properties": { + "provider": { "type": "string", "x-env-value": "SCHEMA_PROVIDER" }, + "filePath": { "type": "string", "x-env-value": "SCHEMA_FILE_PATH" } + } + } + } + } + } +}