redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

SyntaxError: Declaration or statement expected generating code from openapi spec

Open dieseldjango opened this issue 3 years ago • 0 comments

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 .

dieseldjango avatar Jan 12 '22 00:01 dieseldjango