Skip to content

Commit

Permalink
blueprints: specify schema for blueprint metadata (#5509)
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu authored May 7, 2023
1 parent 395dc08 commit 53f827b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ def __init__(self, *args, **kwargs):
"$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",
Expand Down
5 changes: 4 additions & 1 deletion blueprints/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
"type": "string"
},
"labels": {
"type": "object"
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
Expand Down

0 comments on commit 53f827b

Please sign in to comment.