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

Inheritance support #4

Open
hauke96 opened this issue Aug 11, 2017 · 0 comments
Open

Inheritance support #4

hauke96 opened this issue Aug 11, 2017 · 0 comments
Assignees
Labels

Comments

@hauke96
Copy link
Owner

hauke96 commented Aug 11, 2017

Add support for the two types of inheritance: Type- and implementation-inheritance.

For type inheritance add the keyword "inherits": "SomeOtherClass". This will create actual inheritance in the code (as far as it is supported) which will produce this kind of json when transmitted:

"field": "value",
"otherField": "otherValue",
"SomeOtherClass": 
{
  "someOtherField": 123
}

For implementation inheritance add the keyword "embed": "SomeOtherClass". The generated code will then produce this kind of transmitted json:

"field": "value",
"otherField": "otherValue",
"someOtherField": 123

It simply embeds the field of SomeOtherClass.

@hauke96 hauke96 self-assigned this Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant