-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A schema with a field called "description" throws "TypeError: comment.split is not a function" #540
Comments
danmichaelo
added a commit
to danmichaelo/json-schema-to-typescript
that referenced
this issue
Aug 28, 2023
bcherny
pushed a commit
that referenced
this issue
Aug 29, 2023
* Add failing test case * Fix crash when deprecated is defined without description * Add test case for #540 too
Published 13.1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
compiling this schema:
results in this error:
TypeError: comment.split is not a function
at generateComment (<path_redacted>/node_modules/json-schema-to-typescript/dist/src/generator.js:288:57)
at <path_redacted>/node_modules/json-schema-to-typescript/dist/src/generator.js:277:73
at Array.map ()
at generateInterface (<path_redacted>/node_modules/json-schema-to-typescript/dist/src/generator.js:275:14)
at generateStandaloneInterface (<path_redacted>/node_modules/json-schema-to-typescript/dist/src/generator.js:309:9)
at declareNamedInterfaces (<path_redacted>/node_modules/json-schema-to-typescript/dist/src/generator.js:71:21)
at generate (<path_redacted>/node_modules/json-schema-to-typescript/dist/src/generator.js:22:9)
at <path_redacted>/node_modules/json-schema-to-typescript/dist/src/index.js:161:58
at step (<path_redacted>/node_modules/json-schema-to-typescript/dist/src/index.js:59:23)
at Object.next (<path_redacted>/node_modules/json-schema-to-typescript/dist/src/index.js:40:53)
However:
does not.
The text was updated successfully, but these errors were encountered: