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
)
However, my schema is located in a different directory, specifically in app/Http/Resource/AbcResource.php. In AbcResource.php, I have defined the "Abc" schema like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm facing an issue where I need to assign a path reference to a schema using #ref in my OpenAPI documentation. Here's my current situation:
I'm working in the following controller file: app/Http/Controllers/Api/Abc/AbcApiController.php, and I've defined a response like this:
/**
However, my schema is located in a different directory, specifically in app/Http/Resource/AbcResource.php. In AbcResource.php, I have defined the "Abc" schema like this:
/**
Given this separation of directories, I'm unsure how to correctly assign the path reference in the #ref field.
I would greatly appreciate any ideas, solutions, or suggestions you may have.
Thank you very much. 🙏🙏
Beta Was this translation helpful? Give feedback.
All reactions