Skip to content

Commit

Permalink
Update regex expression to allow empty route_name_path string
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Sep 9, 2022
1 parent cb4b7ef commit f539d5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/api/openapi.bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2092,7 +2092,7 @@ components:
pattern: ^(\d{1,3}(\.\d{1,3})?)$|^(\d{2,5}m)$
type: string
memory_request:
pattern: ^\d+(Ei?|Pi?|Ti?|Gi?|Mi?|Ki?)?$
pattern: ^\dw+(Ei?|Pi?|Ti?|Gi?|Mi?|Ki?)?$
type: string
type: object
LogLevel:
Expand Down Expand Up @@ -2305,7 +2305,7 @@ components:
$ref: '#/components/schemas/EnsemblerStandardConfig_experiment_mappings'
type: array
route_name_path:
pattern: ^\w+(?:\.\w+)*$
pattern: ^\w*(?:\.\w+)*$
type: string
required:
- experiment_mappings
Expand Down
4 changes: 2 additions & 2 deletions api/api/specs/routers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ components:
example: "route-1"
route_name_path:
type: "string"
pattern: '^\w+(?:\.\w+)*$'
pattern: '^\w*(?:\.\w+)*$'

EnsemblerDockerConfig:
description: "ensembler config when ensembler type is docker"
Expand Down Expand Up @@ -872,7 +872,7 @@ components:
pattern: '^(\d{1,3}(\.\d{1,3})?)$|^(\d{2,5}m)$'
memory_request:
type: "string"
pattern: '^\d+(Ei?|Pi?|Ti?|Gi?|Mi?|Ki?)?$'
pattern: '^\dw+(Ei?|Pi?|Ti?|Gi?|Mi?|Ki?)?$'

BigQueryConfig:
type: "object"
Expand Down

0 comments on commit f539d5f

Please sign in to comment.