-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
requests/responses linked examples not working #334
Comments
i found the correct L5 syntax to do multiple examples with using refs also : so first i define the examples as:
then i defined a request body because i need multiple examples for one request i think the same thing can be done to a response also if any one need response with multiple examples so my request body was:
then i linked the request body to the request as:
and that generated the flowing objects in api-docs.json
hope this will help any one searching how to do response or request with multiple examples |
^8.0 | grep l5-swagger
)7.3
):Description:
trying to use
@OA\Examples
but it's not rendering in the ui correctlyfirst i defined the
@OA\Examples
then i added request that use this example:
in the api-docs.json:
`
in the ui the
Example
Value is empty but the VehicleStore selected in the dropdown of examples:Steps To Reproduce:
pls add an example to know how to use requests/responses linked examples correctly
i think this also has something related to this problem
2651
Update :
i tried to check Swagger UI online and it seems the generated json form L5 Swager is not right for swagger ui maybe i did something wrong with example definition using L5 syntax so the generated json was wrong but the current generated json from my L5 Syntax is
`
but it should be like
`
to make it work with swagger ui
The text was updated successfully, but these errors were encountered: