Skip to content

Commit

Permalink
fix(jsonschema): corrects the regex for device volume paths
Browse files Browse the repository at this point in the history
The regex for device volume mount and subpath does not account for files
and only accepts directories. However, this is not the expectation as we
can mount either files or directories. This commit corrects the regex.

Wrike Ticket: https://www.wrike.com/open.htm?id=1295041413
  • Loading branch information
pallabpain committed Feb 4, 2024
1 parent be26ff8 commit 23dbf80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riocli/jsonschema/schemas/deployment-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ definitions:
type: string
mountPath:
type: string
pattern: '^([\\/][a-z0-9\s\-_@\-^!#$%&.]*)+(\.[a-z][a-z0-9]+)?$'
pattern: '^(.+)\/([^\/]+)$'
subPath:
type: string
pattern: '^([\\/][a-z0-9\s\-_@\-^!#$%&.]*)+(\.[a-z][a-z0-9]+)?$'
pattern: '^(.+)\/([^\/]+)$'
additionalProperties: false


Expand Down

0 comments on commit 23dbf80

Please sign in to comment.