[BUG] Global Request Headers are incorrect: Expected ',' or '}' after property value in JSON at position 73 (line 4 column 3)
Describe the bug
After installing this package, I ran php artisan serve and opened 127.0.0.1:8000/request-docs without any error. (There was no error at 127.0.0.1:8000/request-docs/api too, and it was ok.)
But when I use send option to test my route, it gives me an error for every route's Global Request Headers are incorrect: Expected ',' or '}' after property value in JSON at position 73 (line 4 column 3)'.
So I checked 127.0.0.1/request-docs/config too, and there was this config:
{ "title": "LRD - Laravel Request Docs", "default_headers": { "Content-Type": "application/json", "Accept": "application/json" } }
To Reproduce Steps to reproduce the behavior:
composer require rakutentech/laravel-request-docsphp artisan serve- Open
http://127.0.0.1:8000/request-docswithout any problem - Test every route by
sendoption and get the error - Global Request Headers are incorrect: Expected ',' or '}' after property value in JSON at position 73 (line 4 column 3)
Screenshots
Desktop (please complete the following information):
- OS: [Windows 11]
- Browser [Chrome Version 137.0.7151.69 (Official Build) (64-bit)]
Versions (please complete the following information):
- Laravel Version: ^10
- PHP Version: ^8.2
- Laravel Request Docs Version: ^2
Hmmm. Will see.