[PHP] Deserializing array of objects may not work
Created by: fMads
Description
When data structure defines array of object, deserializing doesn't work as the nested data may be an array instead of stdclass.
Swagger-codegen version
3.0.0-SNAPSHOT
Swagger declaration file content or url
/path:
post:
parameters:
- in: body
required: true
name: objectName
schema:
type: object
properties:
arrayInObject:
type: array
minItems: 1
items:
$ref: '#/definitions/SomeObject'
Suggest a fix/enhancement
Cast data to stdclass, if data is array, when deserializing data