Skip to content

Commit

Permalink
Fix: Fix target schema for tags (#667)
Browse files Browse the repository at this point in the history
* Update schema_validation.py

Fix target schema for tags

* Update src/lambda_codebase/initial_commit/bootstrap_repository/adf-build/shared/python/schema_validation.py

Co-authored-by: Simon Kok
  • Loading branch information
AndyEfaa committed Jan 18, 2024
1 parent 8336c69 commit 0446248
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@
TARGET_SCHEMA = {
Optional("path"): Or(str, int, TARGET_LIST_SCHEMA),
Optional("tags"): {
And(str, Regex(r"\A.{1,128}\Z")): And(str, Regex(r"\A.{0,256}\Z"))
And(str, Regex(r"\A.{1,128}\Z")): Or(
And(str, Regex(r"\A.{0,256}\Z")),
[And(str, Regex(r"\A.{0,256}\Z"))]
)
},
Optional("target"): Or(str, int, TARGET_LIST_SCHEMA),
Optional("name"): str,
Expand Down

0 comments on commit 0446248

Please sign in to comment.