Skip to content

Commit

Permalink
Importers: Force tags to lowercase (#11221)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch authored Nov 11, 2024
1 parent 6330655 commit c5c1052
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dojo/importers/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,15 @@ def validate_tags(
*args: list,
**kwargs: dict,
) -> list:
return self.validate(
tags = self.validate(
"tags",
expected_types=[list],
required=False,
default=[],
**kwargs,
)
# Force all tags to be lowercase
return [tag.lower() for tag in tags]

def validate_test(
self,
Expand Down

0 comments on commit c5c1052

Please sign in to comment.