Skip to content
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

EMF to JSon serialization doesn't work for nested data types #393

Open
CamilleLetavernier opened this issue Sep 15, 2021 · 0 comments
Open

Comments

@CamilleLetavernier
Copy link
Member

To configure the JSon serializer/deserializer, we use a TypeMap to define the mapping between the EMF Interfaces and their respective Implementation class. However, this TypeMap is only used in the GModelElementTypeAdapter, which means only direct children of a GModelElement (and GModelElements themselves) can be properly serialized. When introducing a deeper data-type structure, (de)serialization fails, and we need to introduce custom TypeAdapters to solve it.

Instead of defining the TypeMap inside of the GModelElementTypeAdapter, we should (automatically) instantiate 1 TypeAdapter per EClass, so that all EMF-based TypeAdapters can work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
GLSP kanban
  
Backlog
Development

No branches or pull requests

2 participants