#ref (Assign path reference to schema) #557
Unanswered
aleresoftware
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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