From 5ae2b1c1c1a4b71a8138496ed451caf8c5f67401 Mon Sep 17 00:00:00 2001 From: Asif Date: Thu, 9 Jul 2026 13:51:10 +0300 Subject: [PATCH 1/2] test: add dumpserver schema --- schemas/vector/dumpServer/v1.schema.json | 55 ++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 schemas/vector/dumpServer/v1.schema.json diff --git a/schemas/vector/dumpServer/v1.schema.json b/schemas/vector/dumpServer/v1.schema.json new file mode 100644 index 00000000..57971b77 --- /dev/null +++ b/schemas/vector/dumpServer/v1.schema.json @@ -0,0 +1,55 @@ +{ + "$id": "https://mapcolonies.com/vector/dumpServer/v1", + "description": "The vector dump server service schema", + "title": "vectorDumpServerSchemaV1", + "type": "object", + "allOf": [ + { + "$ref": "https://mapcolonies.com/common/boilerplate/v3" + }, + { + "type": "object", + "required": ["db", "objectStorage"], + "properties": { + "db": { + "$ref": "https://mapcolonies.com/common/db/full/v3" + }, + "objectStorage": { + "$ref": "#/definitions/objectStorage" + } + } + } + ], + "definitions": { + "objectStorage": { + "type": "object", + "description": "The object storage endpoint used for building the dumps download urls", + "required": ["protocol", "host", "port"], + "properties": { + "protocol": { + "type": "string", + "description": "The protocol of the object storage", + "default": "http", + "x-env-value": "OBJECT_STORAGE_PROTOCOL" + }, + "host": { + "type": "string", + "description": "The host of the object storage", + "x-env-value": "OBJECT_STORAGE_HOST" + }, + "port": { + "type": "integer", + "description": "The port of the object storage", + "minimum": 1, + "maximum": 65535, + "x-env-value": "OBJECT_STORAGE_PORT" + }, + "projectId": { + "type": "string", + "description": "The project id prefixing the bucket name in the dumps download urls", + "x-env-value": "OBJECT_STORAGE_PROJECT_ID" + } + } + } + } +} From 8f77a35f3dda6e6a993f64e773a2bd169f74d0d7 Mon Sep 17 00:00:00 2001 From: Asif Date: Sun, 19 Jul 2026 17:27:19 +0300 Subject: [PATCH 2/2] fix: update schema --- schemas/vector/dumpServer/v1.schema.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/schemas/vector/dumpServer/v1.schema.json b/schemas/vector/dumpServer/v1.schema.json index 57971b77..5160cd5e 100644 --- a/schemas/vector/dumpServer/v1.schema.json +++ b/schemas/vector/dumpServer/v1.schema.json @@ -12,7 +12,7 @@ "required": ["db", "objectStorage"], "properties": { "db": { - "$ref": "https://mapcolonies.com/common/db/full/v3" + "allOf": [{ "$ref": "https://mapcolonies.com/common/db/full/v3" }, { "$ref": "#/definitions/dbHealthCheck" }] }, "objectStorage": { "$ref": "#/definitions/objectStorage" @@ -21,6 +21,18 @@ } ], "definitions": { + "dbHealthCheck": { + "type": "object", + "properties": { + "healthCheckTimeoutMs": { + "type": "integer", + "description": "The timeout in milliseconds for the database health check query", + "default": 5000, + "minimum": 1, + "x-env-value": "DB_HEALTHCHECK_TIMEOUT_MS" + } + } + }, "objectStorage": { "type": "object", "description": "The object storage endpoint used for building the dumps download urls",