-
Notifications
You must be signed in to change notification settings - Fork 150
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
UnhandledPromiseRejectionWarning: TypeError: Cannot convert object to primitive value #198
Comments
Do you have a schema where |
Do you mean it's colliding with type string I have an object type listing a {
"type": "object",
"title": "Properties",
"description": "Properties of Datepicker.",
"additionalProperties": false,
"properties": {
"format": {
"type": "string",
"title": "Format",
"description": "Formatting used to display the date."
},
"value": {
"type": "string",
"title": "Value",
"description": "Date to be displayed."
}
}
} |
Yes, that's exactly what's happening. I can fix this. |
example provided by @AndyOGo in #198 (comment) see #198
## [4.0.7](v4.0.6...v4.0.7) (2020-01-14) ### Bug Fixes * **markdown:** increase robustness when using format as a property name ([cda0bec](cda0bec)), closes [#198](#198)
🎉 This issue has been resolved in version 4.0.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@trieloff Thanks again for your quick help. I have more output now, though another unhandled promise rejection. (node:26127) UnhandledPromiseRejectionWarning: TypeError: Cannot convert object to primitive value
at String (<anonymous>)
at longestStreak (/Users/axawinterthur/dev/aletheia/node_modules/longest-streak/index.js:16:11)
at Of.inlineCode (/Users/axawinterthur/dev/aletheia/node_modules/remark-stringify/lib/visitors/inline-code.js:30:39)
at Of.one [as visit] (/Users/axawinterthur/dev/aletheia/node_modules/remark-stringify/lib/macro/one.js:19:30)
at Of.all (/Users/axawinterthur/dev/aletheia/node_modules/remark-stringify/lib/macro/all.js:14:27)
at Of.tableCell (/Users/axawinterthur/dev/aletheia/node_modules/remark-stringify/lib/visitors/table-cell.js:8:15)
at Of.one [as visit] (/Users/axawinterthur/dev/aletheia/node_modules/remark-stringify/lib/macro/one.js:19:30)
at Of.all (/Users/axawinterthur/dev/aletheia/node_modules/remark-stringify/lib/macro/all.js:14:27)
at Of.table (/Users/axawinterthur/dev/aletheia/node_modules/remark-stringify/lib/visitors/table.js:44:26)
at Of.one [as visit] (/Users/axawinterthur/dev/aletheia/node_modules/remark-stringify/lib/macro/one.js:19:30)
(node:26127) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:26127) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. |
What did you do
Running as NPM script:
jsonschema2md -o docs/ -x docs/ -d schemas/ -e json
What did you expect to happen
No warnings of unhandled promise rejections.
What happened
Note: I reference unloaded JSON schemas of another project.
What's your environment
10.15.2 (19C57)
v10.15.0
Do you have example files:
Sorry, not publicly available for this.
I have the full log only:
The text was updated successfully, but these errors were encountered: