Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
fix(routes/documents/receipt): limit id param length to max of 36
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Jan 19, 2021
1 parent a9dac38 commit dd3f2fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/documents/receipt/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const receiptDeleteSchema = {
S.string()
.description("Logical id of the artifact")
.examples(["EXAMPLEGUID-0123456789-99999"])
.pattern("^[a-zA-Z0-9\\-]{1,36}$")
.required()
),
query: S.object().prop(
Expand Down Expand Up @@ -50,6 +51,7 @@ const receiptPutSchema = {
S.string()
.description("Logical id of the artifact")
.examples(["EXAMPLEGUID-0123456789-99999"])
.pattern("^[a-zA-Z0-9\\-]{1,36}$")
.required()
),
query: S.object()
Expand Down

0 comments on commit dd3f2fc

Please sign in to comment.