Skip to content

Commit 3cd52b4

Browse files
authored
Add type number to general response schema (#340)
APIs may return `number` type response. The schema only accepts if the response is type of string, object or an array. This causes internal server errors.
1 parent aa9c0da commit 3cd52b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/schemas/sharedApiSchemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const publishedDeployParamSchema = Type.Object({
5757
*/
5858
const replyBodySchema = Type.Object({
5959
result: Type.Optional(
60-
Type.Union([Type.String(), Type.Object({}), Type.Array(Type.Any())]),
60+
Type.Union([Type.Number(), Type.String(), Type.Object({}), Type.Array(Type.Any())]),
6161
),
6262
});
6363

0 commit comments

Comments
 (0)