knuckleswtf / scribe

Generate API documentation for humans from your Laravel codebase.✍
https://scribe.knuckles.wtf/laravel/
MIT License
1.74k stars 314 forks source link

More detail response properties #878

Open jamesRUS52 opened 3 months ago

jamesRUS52 commented 3 months ago

Scribe version

4.37.1

Your question

I use ResponseFromApiResource attribute to get sample response. I saw that response/properties section in open api spec contains only type and example Is it possible to get more detail, e.g. nullable: true format: "date" and so on ? I use Osteel validation package to compare swagger docs and real api response and it fail because generated openapi spec not contain detailed data about data types

Docs

daniel100097 commented 2 weeks ago

I have the same issue

shalvah commented 2 days ago

Hmmm...