From 1de0d679922dcbefb5187e1668d776df145fd942 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Mon, 21 Sep 2026 16:47:03 +0000 Subject: [PATCH] fix(schema): add cors to collection and action schemas --- schemas/config/action.schema.json | 40 +++++++++++++++++++++++++++ schemas/config/collection.schema.json | 40 +++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/schemas/config/action.schema.json b/schemas/config/action.schema.json index 89ce7c3..834ee0c 100644 --- a/schemas/config/action.schema.json +++ b/schemas/config/action.schema.json @@ -46,6 +46,46 @@ } } } + }, + "cors": { + "type": "object", + "additionalProperties": false, + "properties": { + "merge": { + "type": "boolean" + }, + "allowOrigins": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowCredentials": { + "type": "boolean" + }, + "allowHeaders": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowMethods": { + "type": "array", + "items": { + "type": "string" + } + }, + "exposeHeaders": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxAge": { + "type": "integer", + "minimum": 0 + } + } } }, "required": [ diff --git a/schemas/config/collection.schema.json b/schemas/config/collection.schema.json index 30b7d37..c331e0f 100644 --- a/schemas/config/collection.schema.json +++ b/schemas/config/collection.schema.json @@ -144,6 +144,46 @@ } } }, + "cors": { + "type": "object", + "additionalProperties": false, + "properties": { + "merge": { + "type": "boolean" + }, + "allowOrigins": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowCredentials": { + "type": "boolean" + }, + "allowHeaders": { + "type": "array", + "items": { + "type": "string" + } + }, + "allowMethods": { + "type": "array", + "items": { + "type": "string" + } + }, + "exposeHeaders": { + "type": "array", + "items": { + "type": "string" + } + }, + "maxAge": { + "type": "integer", + "minimum": 0 + } + } + }, "queryLimits": { "type": "object", "additionalProperties": false,