Skip to content

Commit

Permalink
Importers: Force tags to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Maffooch committed Nov 8, 2024
1 parent 50d01bd commit 51b6641
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 51b6641

Please sign in to comment.