From 53f827b54fbfd8948751c1767c84572e40053406 Mon Sep 17 00:00:00 2001 From: Jens L Date: Sun, 7 May 2023 20:11:18 +0200 Subject: [PATCH] blueprints: specify schema for blueprint metadata (#5509) Signed-off-by: Jens Langhammer --- .../blueprints/management/commands/make_blueprint_schema.py | 5 ++++- blueprints/schema.json | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/authentik/blueprints/management/commands/make_blueprint_schema.py b/authentik/blueprints/management/commands/make_blueprint_schema.py index bd51128e0..ff6ccec3e 100644 --- a/authentik/blueprints/management/commands/make_blueprint_schema.py +++ b/authentik/blueprints/management/commands/make_blueprint_schema.py @@ -40,7 +40,10 @@ class Command(BaseCommand): "$id": "#/properties/metadata", "type": "object", "required": ["name"], - "properties": {"name": {"type": "string"}, "labels": {"type": "object"}}, + "properties": { + "name": {"type": "string"}, + "labels": {"type": "object", "additionalProperties": {"type": "string"}}, + }, }, "context": { "$id": "#/properties/context", diff --git a/blueprints/schema.json b/blueprints/schema.json index da66fb904..4446c8377 100644 --- a/blueprints/schema.json +++ b/blueprints/schema.json @@ -25,7 +25,10 @@ "type": "string" }, "labels": { - "type": "object" + "type": "object", + "additionalProperties": { + "type": "string" + } } } },