-
Notifications
You must be signed in to change notification settings - Fork 597
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
use microProfile-7.0 feature, /openapi/ui does not show openapi documentation #29035
Comments
@Azquelt I see 28861 is closed, so I'm trying my app again with build openliberty-24.0.0.12-beta-cl241120240930-0302.zip I did the following tests
I see the same message in the log as test 2 above |
Thank you for the update. The logic to do the merge was completed in #28861 (as can be seen from the fact the MP Config properties to control merging now work). However, there is still work required before everything you're trying here will work:
There's also a few more capabilities that aren't yet implemented:
|
Test with build openliberty-25.0.0.1-beta-cl241220241107-1102.zip I re-test the 3 settings as in #29035 (comment)
Full log:
Run |
Deploying the app locally, I see from the FFDC that it's complaining about tabs in the I'm investigating why this is causing the problem, but could you try converting the tabs to spaces to see if there are any more problems? |
I've raised an upstream bug for the parsing problem and am working on a fix: smallrye/smallrye-open-api#2059 Locally, replacing tab with four spaces does allow me to deploy the static file successfully so you should be able to complete the rest of your testing. |
I tried to replace tab with 4 spaces on the 2nd line in AllergyForecastMPOpenAPI/WebContent/META-INF/openapi.json file. Then it throws the same error on the next line. There are 172 lines in this file and most of them using tabs. I will wait for the fix for this to get in and will test this again |
@tam512 please just do a find and replace for tab with four spaces. I can provide a PR to your repo if that's easier. |
@Azquelt yes please save the original |
@tam512 thanks. PR above has been updated to create a new file rather than replacing the existing one. |
I tested with openapi-with-spaces.json and I can see all 3 apps ok with and without |
Testcases work ok on build 25.0.0.1-beta-cl241220241110-1902.zip |
Describe the bug
Use Open Liberty
24.0.0.9-beta (wlp-1.0.92.cl240820240729-1903)
andjava.version = 17.0.11
Use the following features
Liberty installed the following features:
<variable name="mp.openapi.extensions.liberty.merged.include" value="all"/>
, viewinghttp://localhost:9081/openapi/ui/
, I gotNo operations defined in spec!
. Below are messages in the log, so maybe the feature to show all apps by default is not ready in this build.No operations defined in spec!
It is working ok if I include only 1 app at a time with the following configuration:
or
Application is at https://github.ibm.com/was-svt/SocialSphere-mpOpenAPI/tree/mp-7.0
The text was updated successfully, but these errors were encountered: