-
-
Notifications
You must be signed in to change notification settings - Fork 833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to reference response schema from file in NelmioApiDocBundle v3 #1272
Comments
It is relative to /api/ (it won't be inlined by the bundle so it has to be in your web folder), so I guess in your case something like Btw no need for |
I see now. It was working before because we have a custom service implementing HandlerInterface and tagged as Also I wasn't able to get the reference working other than providing the whole URL to it when it is located in
I've read about
|
Could you try providing |
Thank you, but that didn't help either. I still get the error mentioned before. |
I'm not sure but it seems to be a swagger-ui issue swagger-api/swagger-editor#1409. If it is I don't think we can fix it here unfortunately. |
It seems to be. Thank you away. |
The old NelmioApiDocBundle v2 could read the response schema from file when you just provided the file name to API method PHPDoc like this:
I know that you can define the schema in new v3 like this:
and define the reference in the Nelmio bundle config like this:
So I tried it with file, but I can't figure out what the right path to the JSON should look like.
The text was updated successfully, but these errors were encountered: