Skip to content
Discussion options

You must be logged in to vote

So here are my findings.

First, I had to modify the failing response a bit to adapt to the data array required by the ResponseCollectionWrapper type. Also, I removed the unknown commonProp2 property that was defined nowhere. Here is the JSON I have used:

{
   "data": [
     {
       "commonProp1": "Value1A",
       "typeIdentifierProp": "TypeA",
       "commonProp3": false,
       "additionalFieldA": "Specific data for TypeA",
       "nestedCommon": { "label": "Category Alpha", "description": null }
     },
     {
       "commonProp1": "Value1B",
       "typeIdentifierProp": "TypeB",
       "commonProp3": true,
       "additionalFieldB": 123,
       "additionalFieldC": "Another B field",
…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@lbroudoux
Comment options

@lbroudoux
Comment options

Answer selected by themalatha888
Comment options

You must be logged in to vote
3 replies
@lbroudoux
Comment options

@themalatha888
Comment options

@lbroudoux
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment