Skip to content

Update codegeneration of redefined properties #1

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

Open
samatstariongroup opened this issue Mar 20, 2025 · 0 comments
Open

Update codegeneration of redefined properties #1

samatstariongroup opened this issue Mar 20, 2025 · 0 comments

Comments

@samatstariongroup
Copy link
Member

according to the KerML spec:

A model element maps to a JSON Schema object with fields @id, @type, and a set of its attributes. The field @id
has a string value equal to the value of Element::elementId. The field @type has a string value equal to the
name of the specific MOF type of the element, e.g. "Structure".

The remaining JSON Schema fields are mapped from the set of MOF properties specified as attributes of the MOF
type of the element. This shall include all owned and inherited properties. **In addition, while redefined properties are
not inherited under MOF/UML rules, they shall be included in the set of properties serialized for the element if they
have a different name than the redefining property**.

this means that DTO generation and JSON serialization need to be updated to accomodate this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant