Skip to content

Commit 9c11e7a

Browse files
fix: schema type integer (#1294)
Co-authored-by: Martin Säfsten <[email protected]>
1 parent ada6a19 commit 9c11e7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/core/src/getters/res-req-types.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,11 @@ const getSchemaFormDataAndUrlEncoded = ({
287287
return `${form}${propName}.forEach(value => ${variableName}.append('data', value))\n`;
288288
}
289289

290-
if (schema.type === 'number' || schema.type === 'boolean') {
290+
if (
291+
schema.type === 'number' ||
292+
schema.type === 'integer' ||
293+
schema.type === 'boolean'
294+
) {
291295
return `${form}${variableName}.append('data', ${propName}.toString())\n`;
292296
}
293297

0 commit comments

Comments
 (0)