Property names with at sign throw parsing error in declaration file #1162
Labels
bug
Something isn't working
good first issue
Straightforward problem, solvable for first-time contributors without deep knowledge of the project
openapi-ts
Relevant to the openapi-typescript library
PRs welcome
PRs are welcome to solve this issue!
Description
After generating the types, there are errors (e.g.
Parsing error: Property or signature expected
) in the.d.ts
file that appear to be caused by unquoted property names that include an at sign. The following is a snippet taken from a StackPath OpenAPI doc.The generated file includes the following:
openapi-typescript
6.2.6
18.16.0
macOS 12.6.6
Expected result
Property names that include an at sign should be quoted (e.g.
"@type": "stackpath.rpc.Help";
).Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: