swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

bug: SyntaxError: Declaration or statement expected.

Open ZXYT opened this issue 2 years ago • 7 comments

image

ZXYT avatar Nov 08 '23 03:11 ZXYT

Hello @ZXYT! Can you attach a schema? Interesting case

frolovsky avatar Nov 19 '23 16:11 frolovsky

What do you mean

ZXYT avatar Nov 20 '23 09:11 ZXYT

input file

frolovsky avatar Nov 20 '23 10:11 frolovsky

There is a Chinese key in schema.definitions, and the name of the generated ts does not conform to the grammar, so an error is reported.

DarkPage avatar Dec 06 '23 05:12 DarkPage

There is a Chinese key in schema.definitions, and the name of the generated ts does not conform to the grammar, so an error is reported.

Has any method to solve this?

wewoor avatar Mar 18 '24 06:03 wewoor