You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume you're using the generator in the solid server.
If so, it will generate parameters for all fields (SomeComponent:_someString, SomeComponent:_someNumber, SomeComponent:_someJson_a, ...)
You can find the exact param identifiers inside the autogenerated components folder.
In that case, instantiating it via a config file happens in the standard way.
So here this would look something like:
But should be perfectly possible to implement this though.
This would require some small changes in both Components.js, and the generator (setting @range JSON on someJson in jsdoc).
Activity
rubensworks commentedon Jan 13, 2021
I assume you're using the generator in the solid server.
If so, it will generate parameters for all fields (
SomeComponent:_someString,SomeComponent:_someNumber,SomeComponent:_someJson_a, ...)You can find the exact param identifiers inside the autogenerated
componentsfolder.In that case, instantiating it via a config file happens in the standard way.
So here this would look something like:
{ "@id": "urn:something", "@type": "SomeComponent", "SomeComponent:_someString": "abc", "SomeComponent:_someNumber": 123, "SomeComponent:_someJson_a": "def", ... }jaxoncreed commentedon Jan 13, 2021
Is there no way to provide so nice raw JSON? Do I have to do it via underscores?
rubensworks commentedon Jan 13, 2021
No, there's no way to do this at the moment.
But should be perfectly possible to implement this though.
This would require some small changes in both Components.js, and the generator (setting
@range JSONonsomeJsonin jsdoc).