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
☄️ start generating your typescript api
SyntaxError: An enum member name must be followed by a ',', '=', or '}'. (19:6)
17 | resolved = "resolved",
18 | new = "new",
> 19 |in progress = "in progress"| ^
20 | }
21 |
at t (/project/node_modules/prettier/parser-typescript.js:1:287)
at Object.parse (/project/node_modules/prettier/parser-typescript.js:14:2633274)
at Object.parse (/project/node_modules/prettier/index.js:11370:19)
at coreFormat (/project/node_modules/prettier/index.js:14784:25)
at format (/project/node_modules/prettier/index.js:15019:75)
at formatWithCursor (/project/node_modules/prettier/index.js:15035:12)
at /project/node_modules/prettier/index.js:51620:12
at Object.format (/project/node_modules/prettier/index.js:51640:12)
at /project/node_modules/swagger-typescript-api/src/index.js:89:39 {
This is because it doesn’t add quotes around the enum declaration. That is, instead of outputting:
For example I have:
And I get this error:
This is because it doesn’t add quotes around the enum declaration. That is, instead of outputting:
should be:
The text was updated successfully, but these errors were encountered: