We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
JsonObjectReader.java
explicitly assumes "__typename" as the subtype field.
"__typename"
Would it be possible to consider @JsonbTypeInfo(key = "myField") key field if the annotation is defined?
@JsonbTypeInfo(key = "myField")
There are use cases where the type is not part of the schema (e.g JSON scalar) and demands more flexibility.
Considering Contentful JSON scalar model for rich-text the expected supported code could be:
@JsonbTypeInfo(key = "nodeType", value = { @JsonbSubtype(alias = "document", type = Document.class), @JsonbSubtype(alias = "heading-1", type = Heading1.class) ... }) public interface Content { }
@Type("document") public class Document implements Content { }
Thank you :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
JsonObjectReader.java
explicitly assumes
"__typename"
as the subtype field.Would it be possible to consider
@JsonbTypeInfo(key = "myField")
key field if the annotation is defined?There are use cases where the type is not part of the schema (e.g JSON scalar) and demands more flexibility.
Considering Contentful JSON scalar model for rich-text the expected supported code could be:
Thank you :)
The text was updated successfully, but these errors were encountered: