Skip to content

Commit

Permalink
fix(back): Properly validate repository name
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik003 committed Nov 7, 2023
1 parent 3eb619c commit 1bf2c64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class DatabaseT4CRepository(database.Base):


class CreateT4CRepository(pydantic.BaseModel):
name: str
name: str = pydantic.Field(pattern="/^[-a-zA-Z0-9_]+$/")


class T4CRepositoryStatus(str, enum.Enum):
Expand Down

0 comments on commit 1bf2c64

Please sign in to comment.