Skip to content

Commit

Permalink
fix: require tags to be space-less
Browse files Browse the repository at this point in the history
closes #792
  • Loading branch information
davidsneighbour committed Mar 8, 2024
1 parent 71e2592 commit fbb24b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions static/_schemata/taxonomies.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ properties:
Tags are case insensitive.
items:
type: string
pattern: "^[\\w-]+$"
format: lowercase # lowercase for validation, does not actually lowercase the value
errorMessage: 'Tags must contain only lowercase characters, digits, and dashes, with no spaces.'

keywords:
type: array
Expand Down

0 comments on commit fbb24b2

Please sign in to comment.