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
At the moment there is no way to unmarshal the following JSON using DictShield:
{ "code" : "GBP", "self" : "http://localhost:8080/currencies/GBP" # Replacing with "link": works fine }
... because the self key can't be defined as a field in a Document subclass. And similarly it's hard to work with the following:
self
Document
{ "customer" : "Bob", "email" : "bob@test.com", "link" : { "rel" : "self", "href" : "http://localhost:8080/customer/2", "type" : "text/xml" }, "link" : { "rel" : "next", "href" : "http://localhost:8080/customer/3", "type" : "text/xml" }, "link" : { "rel" : "prev", "href" : "http://localhost:8080/customer/1", "type" : "text/xml" }, }
... because there are three elements with the same name.
It would be nice to have some sort of Jackson @JsonProperty-style naming override, like this:
@JsonProperty
self_link = URLField(property_name="self", required=True) self_atom = EmbeddedDocumentField(AtomLink, property_name="link") next_atom = EmbeddedDocumentField(AtomLink, property_name="link") prev_atom = EmbeddedDocumentField(AtomLink, property_name="link")
The text was updated successfully, but these errors were encountered:
Closing due to age. Can reopen if this is still requested.
Sorry, something went wrong.
No branches or pull requests
At the moment there is no way to unmarshal the following JSON using DictShield:
... because the
self
key can't be defined as a field in aDocument
subclass. And similarly it's hard to work with the following:... because there are three elements with the same name.
It would be nice to have some sort of Jackson
@JsonProperty
-style naming override, like this:The text was updated successfully, but these errors were encountered: