Skip to content

Commit

Permalink
fix(jsonschema): updates the projectGUID regex pattern
Browse files Browse the repository at this point in the history
This commit fixes the project guid regex pattern used in some
schemas per the latest v2 project GUID changes. The guid that
is generated now is alphanumeric with fewer characters.
  • Loading branch information
pallabpain committed Jun 16, 2023
1 parent 0361904 commit 63b975e
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/build-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ definitions:
- name
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
buildGUID:
type: string
pattern: "^build-[a-z]{24}$"
Expand Down
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/deployment-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ definitions:
pattern: "^org-[a-z]{24}$"
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
secretGUID:
type: string
pattern: "^secret-[a-z]{24}$"
Expand Down
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/device-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ definitions:
type: string
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
uuid:
type: string
pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/disk-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ definitions:
- name
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
diskGUID:
type: string
pattern: "^disk-[a-z]{24}$"
Expand Down
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/managedservice-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ definitions:
- name
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
stringMap:
type: object
additionalProperties:
Expand Down
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/network-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ definitions:
pattern: "^network-[a-z]{24}$"
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
stringMap:
type: object
additionalProperties:
Expand Down
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/package-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ definitions:
pattern: "^org-[a-z]{24}$"
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
secretGUID:
type: string
pattern: "^secret-[a-z]{24}$"
Expand Down
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/primitives.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ definitions:
pattern: "^org-[a-z]{24}$"
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
secretGUID:
type: string
pattern: "^secret-[a-z]{24}$"
Expand Down
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/project-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ definitions:
- name
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
organizationGUID:
type: string
pattern: "^org-[a-z]{24}$"
Expand Down
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/secret-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ definitions:
- name
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
secretGUID:
type: string
pattern: "^secret-[a-z]{24}$"
Expand Down
2 changes: 1 addition & 1 deletion riocli/jsonschema/schemas/static_route-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ definitions:
- name
projectGUID:
type: string
pattern: "^project-[a-z]{24}$"
pattern: "^project-([a-z0-9]{20}|[a-z]{24})$"
staticRouteGUID:
type: string
pattern: "^staticroute-[a-z]{24}$"
Expand Down

0 comments on commit 63b975e

Please sign in to comment.