You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using "scalar" theme with "external_laravel" type, it doesn't populate the values from ResponseField attribute in the docs. It works fine with default theme.
Does the data show up in the generated OpenAPI spec though? Because the data that shows up in the external_* themes is an external JS library (eg Scalar) which takes the OpenAPI spec. So if it's in the OpenAPI spec but not rendered by the external library, it's not on us.
I checked the OpenAPI spec, and it has the response fields for some of the endpoints, but not for others. Those who have the response fields does show up in scalar.
It seems it is calling the setDescription method using the full path here and that is causing the issue. I have added ResponseField attribute to ApiResource with id as the name as mentioned here, but it is looking for data.id.
Scribe version
4.38.0
PHP version
8.3
Framework
Laravel
Framework version
11.33.2
Scribe config
What happened?
When using "scalar" theme with "external_laravel" type, it doesn't populate the values from ResponseField attribute in the docs. It works fine with default theme.
Docs
The text was updated successfully, but these errors were encountered: