deblockt / hal-rest-client

Typescript HAL Rest client
Apache License 2.0
25 stars 11 forks source link

collection under props with undefined objects #12

Closed baxtheman closed 7 years ago

baxtheman commented 7 years ago

Hi again,

I've another case to analyze with you.

This is the json returned by spring application: https://gist.github.com/baxtheman/0d954791b339647f9044e2e8640a9f96

Inside every commessa master object there is a lavorazioni children objects collection. In the gist you find the java definitions also.

From fetch by the hal-rest-client the resource obtained for a commessa object is this:

Then, why the props.lavorazioni is an not empty array of undefined object?

baxtheman commented 7 years ago

Meanwhile I'm tryng to change the spring json output to have a better format.

Are you able to understand if the json in the gist is HAL compliant?

deblockt commented 7 years ago

I think this is your correction proposal on issue #11 you create this issue. Have you update your dependencies? Your modification have been removed?

I have try a subset of your json on my unit test and all worked fine.

baxtheman commented 7 years ago

Ok, maybe is what you said. I clean the node modules and npm install the last version.

baxtheman commented 7 years ago

Yes, it was false issue, thankyou