-
Notifications
You must be signed in to change notification settings - Fork 6
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
Accept strings as JSON #92
Comments
Thanks for reporting! |
@adlerfaulkner Looks like strings should indeed be accepted there. Can you see any additional information about the root cause of the error in |
I'm not sure what you want in Here's the full error output:
|
When I put
which is the error produced by |
This may be another JSON-parsing-related bug in the JSON-LD parser. We would expect |
Issue type:
Description:
I am getting an error saying:
From this config:
Because the
template
arg ofEjsTemplateEngine
is supposed to be able to accept a string or a json object.Using a json field in this way errors because the string cannot be parsed by
JSON.parse()
here:Components.js/lib/preprocess/parameterproperty/ParameterPropertyHandlerRange.ts
Lines 144 to 148 in 4c14d40
JSON fields should accept strings because strings are valid JSON.
Environment:
components.js v4.5.0
nodejs v16.14.0
The text was updated successfully, but these errors were encountered: