redux-toolkit
redux-toolkit copied to clipboard
SyntaxError: Declaration or statement expected generating code from openapi spec
I have an openapi spec that, when run through codegen-openapi, produces this error:
SyntaxError: Declaration or statement expected. (365:1)
363 | });
364 | export type Items5 = string;
> 365 | export type 0 = {
| ^
366 | offset?: number;
367 | limit?: number;
368 | } & {
The error shows it's trying to create a type named, "0". I attached a redacted copy of the openapi spec. openapi.zip .