You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! I face the problem that enum of numbers generates well in request params with extractRequestParams: true option, but for usual schemas library generates the same enum like enum of strings.
Library version: 12.0.4
Spec file example:
in requestBody - "someTypeId":{"type":"integer","enum":[1,2]} => export type SomeTypeId = "1" | "2"
in parameters -> query "someTypeId":{"type":"integer","enum":[1,2]} (1:1 as above) => export type SomeTypeId = 1 | 2;
Actual behavior: export type SomeTypeId = "1" | "2";
Uh oh!
There was an error while loading. Please reload this page.
Hi there! I face the problem that enum of numbers generates well in request params with
extractRequestParams: true
option, but for usual schemas library generates the same enum like enum of strings.Library version: 12.0.4
Spec file example:
in requestBody -
"someTypeId":{"type":"integer","enum":[1,2]}
=>export type SomeTypeId = "1" | "2"
in parameters -> query
"someTypeId":{"type":"integer","enum":[1,2]}
(1:1 as above) =>export type SomeTypeId = 1 | 2;
Actual behavior:
export type SomeTypeId = "1" | "2";
script
The text was updated successfully, but these errors were encountered: