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

Improve handling of complex inheritance that includes enumeration #1

Open
DennisAlund opened this issue Apr 1, 2024 · 0 comments
Open

Comments

@DennisAlund
Copy link
Member

There are complex relationships where a class both inherits from enumeration and other classes at the same time. The best way to handle this for now is to just represent the enumeration as an String option type

See for example https://schema.org/CreditCard that has the inheritance structure

Thing > Intangible > Service > FinancialProduct > LoanOrCredit > CreditCard
Thing > Intangible > Service > FinancialProduct > PaymentCard > CreditCard
Thing > Intangible > Enumeration > PaymentMethod > PaymentCard > CreditCard

Since the enumerations in the end are resolved to strings, the current implementation seems impossible to do any reasonable implementation apart from changing the enumeration path of inheritance into simply changing it into a String.

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