blueprints: specify schema for blueprint metadata (#5509)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-05-07 20:11:18 +02:00 committed by GitHub
parent 395dc08f05
commit 53f827b54f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -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",

View File

@ -25,7 +25,10 @@
"type": "string"
},
"labels": {
"type": "object"
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},