-
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
More type errors #201
Comments
@AndyOGo this one looks different, as it seems to fail in the processing of an |
@trieloff Okay. UPDATED: {
"$schema": "http://json-schema.org/draft-04/schema#",
"$id": "http://www.example.com/schemas/components/Button.json",
"type": "object",
"title": "Button",
"description": "Renders a Button.",
"additionalProperties": false,
"properties": {
"properties": {
"type": "object",
"title": "Properties",
"description": "Properties of Button.",
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"button",
"submit",
"reset"
],
"title": "Type",
"description": "The type of the Button (not used for anchors)."
}
}
}
}
} I think any key for object's type properties listing shouldn't have any side effect or special treatment 🤔 I added a Which yields this log: TypeError: Cannot convert object to primitive value
at String (<anonymous>)
at longestStreak (/Users/axawinterthur/dev/aletheia/node_modules/longest-streak/index.js:17: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)
{ type: 'string',
enum: [ 'button', 'submit', 'reset' ],
title: 'Type',
description: 'The type of the Button (not used for anchors).',
[Symbol(myslug)]: 'button-properties-properties-properties-type' } |
using the example provided in #201 (comment) see #201
…cyclic-schemas-test#2 this uses the axa-ch/cyclic-schemas-test#2 branch for the integration tests, which then fail, as expected see #201
## [4.0.9](v4.0.8...v4.0.9) (2020-01-20) ### Bug Fixes * **markdown:** prevent unescaped objects in markdown AST ([87d709a](87d709a)), closes [#201](#201)
🎉 This issue has been resolved in version 4.0.9 🎉 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.
We use other keywords as keys too, e.g. object type
properties
or array typeitems
keywords, but those are all not primitives... 🤔Originally posted by @AndyOGo in #198 (comment)
The text was updated successfully, but these errors were encountered: