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

How to generate inheritance classes in C++ #1527

Open
praveensoma opened this issue Jul 19, 2020 · 1 comment
Open

How to generate inheritance classes in C++ #1527

praveensoma opened this issue Jul 19, 2020 · 1 comment

Comments

@praveensoma
Copy link

For Ex:
I have Person class with name and id , same can be written in JSON schema and C++ class.

If i want to extend it (similar to C++)

class Employee:Person

what should i write in JSON schema

I mean quick type should generate classes in inheritance model.

@adriandole
Copy link
Contributor

You can't. JSON schema doesn't support inheritance. See here for rationale: json-schema-org/json-schema-spec#348 (comment)

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

2 participants