Unable to retrieve complete JSON schema #153
-
We're currently facing some problems in our prototype solution when loading the JSON Schema on our Tree Editor. Our *.ecore model is based on an existing XSD and was generated automatically by Eclipse EMF. The resulting *.ecore file contains some dependencies to types defined in other *.ecore files from Eclipse EMF (i.e. XMLNamespace.ecore)
When fetching the JSON schema from the model server (
However the We're asking for some advice to know what is the problem:
Many thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
HI @agonzalezgaliana! In the meantime, did you try to pass no Json Type schema ( |
Beta Was this translation helpful? Give feedback.
-
I have solved cases with multiple dynamic EMF metamodels (dynamic = java sources not generated), so there definitely is a way to solve your problem. First of all, relative URIs can be tricky. So I suggest using absolute URIs with URI mappings instead. For your example, use "http://www.w3.org/XML/1998/namespace#//LangType" instead of "../../org.eclipse.emf.ecore/model/XMLNamespace.ecore#//LangType". You can safely make a replace all in a text editor for ""../../org.eclipse.emf.ecore/model/XMLNamespace.ecore#/" then open your metamodel again to check that all references are correctly resolved. Then, about the schema resolution itself :
where |
Beta Was this translation helpful? Give feedback.
I have solved cases with multiple dynamic EMF metamodels (dynamic = java sources not generated), so there definitely is a way to solve your problem.
First of all, relative URIs can be tricky. So I suggest using absolute URIs with URI mappings instead. For your example, use "http://www.w3.org/XML/1998/namespace#//LangType" instead of "../../org.eclipse.emf.ecore/model/XMLNamespace.ecore#//LangType". You can safely make a replace all in a text editor for ""../../org.eclipse.emf.ecore/model/XMLNamespace.ecore#/" then open your metamodel again to check that all references are correctly resolved.
Then, about the schema resolution itself :
In JsonFormsDetailConfig, there is a 'refParserOptions'…