guzzle / guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.
MIT License
253 stars 78 forks source link

Added tests for JSON array of arrays and array of objects #131

Closed selfcatering closed 7 years ago

selfcatering commented 7 years ago

It took me a while to figure out how to write proper descriptions for JSON nested arrays of arrays and arrays of objects. Current JsonResponse seems to cover that quite well, but documentation is lacking instructions on how to properly write descriptions. This PR covers both scenarios and comments explain all the mandatory description elements. Hope that helps someone in the future.

Konafets commented 7 years ago

@selfcatering, thanks for your contribution!