You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note, that the HasOperator references another ILogigOperator in its constraint property.
Because other projects that use our framework are allowed to extend the system by implementing their own operators, I cannot annotate ILogicOperator staticly with @JsonSubtypes.
Therefore, in the schema generator I try to resolve the subtype structure dynamically:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am quite new in using Victools, and I have a problem which shows in an error message like
Here is what I try to do:
I have an interface
ILogicOperatorwhich is implemented by many classes, e.g. the
HasOperator:Please note, that the
HasOperatorreferences anotherILogigOperatorin itsconstraintproperty.Because other projects that use our framework are allowed to extend the system by implementing their own operators, I cannot annotate
ILogicOperatorstaticly with@JsonSubtypes.Therefore, in the schema generator I try to resolve the subtype structure dynamically:
The Problem also arises if I try to resolve the hierarchy of th
HasOperatoronly, likeMy suspicion is that the problem is something to do with the self referencing classes that I pointed out above.
Is there a way to achieve a dynamic subtype resolution in my case?
Beta Was this translation helpful? Give feedback.
All reactions