-
Notifications
You must be signed in to change notification settings - Fork 604
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
Referencing files with OpenAPI #15428
Comments
@igbluz thanks for raising this issue! After the discussion with MicroProfile Open API group, this behaviour should be speced in the spec. Are you ok to close this as we will continue our discussion in eclipse/microprofile-open-api#463? |
@Emily-Jiang I think this is now mandatory in OA 3.0: https://swagger.io/docs/specification/using-ref/ Does this still need a discussion? |
Thank you for the responses.
|
@igbluz could you kindly elaborate what's the current status? Thanks. 🙏🏻 |
I want to reference another openapi yaml file (problem.yaml) from my master yaml (openapi.yaml)
I use this construct in openapi.yaml:
With the openapi generator tool I can generate my stubs correctly.
When I start OpenLiberty server with the command
mvn liberty:dev
I get these OpenApi Validation exception:Reproduce the error
You can reproduce very easy. Just use the guide-microprofile-openapi sample and copy the problem.yaml to the
wepapp/META-INF
directory.Replace the 400: response with this:
After `mvn clean liberty:dev you can see the error.
Expected behavior
The Server starts without error and shows the OpenAPI UI
(http://localhost:9080/openapi/ui)
without error.Diagnostic information:
Additional context
I uploaded problem.yaml.txt, just rename it to problem.yaml and use it
problem.yaml.txt
The text was updated successfully, but these errors were encountered: