dedoc / scramble

Modern Laravel OpenAPI (Swagger) documentation generator. No PHPDoc annotations required.
https://scramble.dedoc.co/
MIT License
1.18k stars 113 forks source link

date model attributes have object type instead of string type #541

Open layerok opened 2 weeks ago

layerok commented 2 weeks ago

This is regression of https://github.com/dedoc/scramble/issues/239

As I understood this bug was reintroduced after adding support for inferring types of model attributes from model casts https://github.com/dedoc/scramble/blob/4752b9897138dd71ffd2d8aa374967801e21f97e/src/Support/InferExtensions/ModelExtension.php#L133-L134

romalytvynenko commented 2 weeks ago

@layerok I would be happy to accept a PR for this issue with some tests 😇