Skip to content

Commit

Permalink
change string constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
elsholz committed Jan 14, 2024
1 parent 13db27f commit f9bc524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/code/metroplanner_api/type_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ class Styling(BaseModel):

class Label(BaseModel):
label_class: Annotated[
pydantic.constr(
str,
pydantic.StringConstraints(
pattern=(
"centered"
"|left_ascending"
Expand Down

0 comments on commit f9bc524

Please sign in to comment.