-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[1301] Add support to serialize referenced object concrete type in JSON
resource Bug: #1301 Signed-off-by: Laurent Fasani <laurent.fasani@obeo.fr>
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
= ADR-067 - Add suport for intermodel references | ||
|
||
== Context | ||
|
||
The context is an EMF editing context with a ResourceSet containing at least two models and references between the models. | ||
We should be have to load and save properly those models. | ||
|
||
Currently, the URI used to add resources in the ResourceSet is the id of the document. | ||
That is an issue because IllegalArgumentException are raised from some EMF code part (such as URI.resolve(URI)). | ||
A valid URI must contain a scheme. | ||
So the URI of the resources added to the resourceSet should be on the form: | ||
`<scheme>:///<id de la resource>` | ||
|
||
For the URI, corresponding to document added in the project, loaded as JSONResource, the URI scheme is arbitrary : | ||
``sirius`` | ||
Example: `sirius:///a264d307-97d9-451d-90f5-46d38668b69c` | ||
|
||
== Decision | ||
|
||
For the URI, corresponding to document added in the project, loaded as JSONResource, the URI scheme is arbitrary : | ||
``sirius`` | ||
Example: `sirius:///a264d307-97d9-451d-90f5-46d38668b69c` | ||
|
||
== Status | ||
|
||
Accepted. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters