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
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXISTING_PROPERTY,
property = "type"
)
@JsonSubTypes({
@JsonSubTypes.Type(value = MultipleChoiceQuestion.class, name = "multiple_choice"),
@JsonSubTypes.Type(value = SimpleAnswerQuestion.class, name = "simple_answer")
})
// note interface if it detects there's nothing in the JSON specific to Question, it's just oneOf and additionalProperties = falseinterfaceQuestion {}
The text was updated successfully, but these errors were encountered:
This is a specific use case but posing it as a discussion (I do recommend we have Discussion enabled on the project to clarify ideas)
Assuming we this schema
We should get something like this
The text was updated successfully, but these errors were encountered: