Skip to content

@ElideTypeConverter for Set, List etc. of some class? #2842

Answered by aklish
eedijs asked this question in Q&A
Discussion options

You must be logged in to vote

I would need to see your models to understand better what is going on. For an example of something that sounds like your use case, check out this test:

https://github.com/yahoo/elide/blob/master/elide-integration-tests/src/test/java/com/yahoo/elide/tests/ResourceIT.java#L657-L692

That test produces a response like:

HTTP/1.1 200 OK
Date: Tue, 29 Nov 2022 01:15:14 GMT
Content-Type: application/vnd.api+json
Content-Length: 147
Server: Jetty(10.0.10)

{
    "data": {
        "type": "company",
        "id": "abc",
        "attributes": {
            "address": {
                "street1": "street1",
                "street2": null,
                "properties": {
                    "foo": "b…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@eedijs
Comment options

Comment options

You must be logged in to vote
1 reply
@eedijs
Comment options

Answer selected by eedijs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants