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

Commit

Permalink
fix(routes): correct schema to be nullable string
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Jan 11, 2021
1 parent 804973c commit 3d0dfb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/routes/documents/receipt/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const receiptDeleteSchema = {
.required()
),
response: {
204: S.null(),
204: S.string().raw({ nullable: true }),
500: S.object()
.prop("statusCode", S.number().const(500))
.prop("error", S.string().const("Internal Server Error"))
Expand Down Expand Up @@ -62,7 +62,7 @@ const receiptPutSchema = {
.required()
),
response: {
204: S.null(),
204: S.string().raw({ nullable: true }),
404: S.object()
.prop("statusCode", S.number().const(404))
.prop("error", S.string().const("Not Found"))
Expand Down
2 changes: 1 addition & 1 deletion src/routes/preferences/user/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const userPutSchema = {
)
),
response: {
204: S.null(),
204: S.string().raw({ nullable: true }),
400: S.object()
.prop("statusCode", S.number().const(400))
.prop("error", S.string().const("Bad Request"))
Expand Down

0 comments on commit 3d0dfb6

Please sign in to comment.