Currently I am using jsonforms as part of Properties widget in theia application project and I am trying to resolve reference schemas within my property widget. When i try to use $RefParser my application fails. And i see in the documentation that from 3.0.0 the json-schema-ref-parser
has been removed. Is it still possible to parse my references while using the jsonforms 3.0.0.
Hi @amiths89,
See here for our migration guide and how to use the json-schema-ref-parser
manually.
I did see this and my issue is with this code as I tried to use $RefParser from ‘@apidevtools/json-schema-ref-parser’ or JsonRefs from ‘json-refs’ am still seeing errors relating to missing modules though i added these to my dependencies
The issue is that these are not that easy to use as for example the $RefParser
requires polyfills which you have to add to your Webpack config.
I would suggest to try json-refs
. It has both Node and Browser builds.
Thanks I will look at it again
But I think I may have tried json-refs as well and I guess I came across webpack errors for that as well. So would that mean that would need poylyfill as well
Hi @amiths89,
You need to make sure to consume the Browser build of json-refs
, then no polyfill is necessary.