orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
Errors:
../../resources/common/src/clients/models/check503Info.ts:14:5 - error TS2411: Property 'status' of type 'string | undefined' is not assignable to 'string' index type 'string'.
14 status?: string;
817 const formData = new FormData();
../../resources/common/src/clients/api/events/events.ts:890:24 - error TS2693: 'FormData' only refers to a type, but is being used as a value here
What happens?
When I build a project with the generated orval clients it fails.
What are the steps to reproduce this issue?
yarn run build
Errors: ../../resources/common/src/clients/models/check503Info.ts:14:5 - error TS2411: Property 'status' of type 'string | undefined' is not assignable to 'string' index type 'string'.
14 status?: string;
../../resources/common/src/clients/api/events/events.ts:890:24 - error TS2693: 'FormData' only refers to a type, but is being used as a value here
What happens?
When I build a project with the generated orval clients it fails.
What were you expecting to happen?
Not to fail.
Any logs, error output, etc?
Any other comments?
What versions are you using?
Please execute
npx envinfo --system --npmPackages orval,zod,axios,msw,swr,@tanstack/react-query,@tanstack/vue-query,react,vue
and paste the results here.System: