Skip to content

Commit

Permalink
fix: list verification
Browse files Browse the repository at this point in the history
  • Loading branch information
magajh committed Nov 8, 2024
1 parent 3940ca5 commit 9f3e3ea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/scripts/validate_yaml_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@
Optional("PICASSO_THEMES_NAME"): And(
list,
len,
Use(lambda x: all(isinstance(item, str) and item for item in x), error="PICASSO_THEMES_NAME must be a non-empty list of non-empty strings")
lambda x: all(isinstance(item, str) and item for item in x),
error="PICASSO_THEMES_NAME must be a non-empty list of non-empty strings",
),
Optional("PICASSO_THEME_DIRS"): And(
list,
len,
Use(lambda x: all(isinstance(item, str) and item for item in x), error="PICASSO_THEME_DIRS must be a non-empty list of non-empty strings")
lambda x: all(isinstance(item, str) and item for item in x),
error="PICASSO_THEME_DIRS must be a non-empty list of non-empty strings",
)
},
ignore_extra_keys=True
Expand Down

0 comments on commit 9f3e3ea

Please sign in to comment.