Skip to content

Commit

Permalink
fix regex for names (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowellwofford authored Feb 26, 2021
1 parent e7775a3 commit 5f88e0b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion models/name.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions restapi/embedded_spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ definitions:
A name must consist of numbers, letters, and the symbols in the set { `.`, `-`, `_`}.
type: string
pattern: "^[A-Za-z0-1.-_]*$"
pattern: "^[A-Za-z0-1.\\-_]*$"

rbd_options:
type: object
Expand Down Expand Up @@ -742,7 +742,7 @@ paths:
/container/byname/{name}/{state}:
parameters:
- type: string
pattern: '^[a-zA-Z0-9._-]*$'
pattern: "^[a-zA-Z0-9.\\-_]*$"
name: name
in: path
required: true
Expand Down

0 comments on commit 5f88e0b

Please sign in to comment.