Skip to content

Commit

Permalink
fix(jsonschema): corrects the regex for device volume paths (#268)
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 authored and RomilShah committed Apr 22, 2024
1 parent 1e87cc2 commit c70b1fc
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: '^\/$|(^(?=\/)|^\.|^\.\.)(\/(?=[^/\0])[^/\0]+)*\/?$'
subPath:
type: string
pattern: '^([\\/][a-z0-9\s\-_@\-^!#$%&.]*)+(\.[a-z][a-z0-9]+)?$'
pattern: '^\/$|(^(?=\/)|^\.|^\.\.)(\/(?=[^/\0])[^/\0]+)*\/?$'
additionalProperties: false


Expand Down

0 comments on commit c70b1fc

Please sign in to comment.