mpociot / laravel-apidoc-generator

Laravel API Documentation Generator
https://beyondco.de/docs/laravel-apidoc-generator/
MIT License
3.43k stars 614 forks source link

Fix responseFile Convert empty object to array #820

Closed deathkel closed 3 years ago

deathkel commented 3 years ago

@responseFile tag now convert empty object to empty array due to json_decode($content, true) Example:

{"foo":{}}

wil convert to

{"foo":[]}