-
Notifications
You must be signed in to change notification settings - Fork 592
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
Support MicroProfile Open API 2.0 (part of MP 4.0) #11020
Comments
The MicroProfile OpenAPI Specification provides a unified Java API for the OpenAPI v3 specification, that all application developers can use to expose their API documentation. Support for version 1.0 of the MicroProfile OpenAPI Specification was delivered as part of the Support for version 1.1 of the MicroProfile OpenAPI Specification was delivered as part of the This issue captures the work required to add support for version 2.0 of the MicroProfile OpenAPI Specification, delivered as part of a new Unlike previous versions, the |
Review of the MicroProfile OpenAPI 2.0 UFO is scheduled for Monday 27th July at 10am EDT. |
Actions from this mornings UFO socialization:
|
Unfortunately I missed the review. Does the new design cover the new |
@arthurdm Good catch... no this was missed. However, reading over the Exposing platform OpenAPIs sections of the specification, it is not clear how this SPI works. Is the following pattern intended to show how to define a MP Config key for a specific platform API:
|
right - that MP Config defines a particular component that will be part of the |
@arthurdm So, in OL, each MP component that wants to expose its own platform REST API will need to register an MP Config property of the form shown above... presumably using a custom config source? The MP OpenAPI feature will need to dynamically monitor these config properties so that it can respond to changes at runtime... and then server up the OpenAPI docs on the relevant URLs. Correct? |
high level concept is correct @msmiths - details may vary, depending on how you want to implement it. =) |
Serviceability Approval Comment
In the UFO, a few brief problems which developers faced with the 1.x implementation, which 2.0 resolves with API/SPI changes, are stated. These are addressed within the Externals Design section of the UFO. However, aside from the new additions to
Common problem paths were identified through configuring Open Liberty with Serviceability of the feature was then defined through the user's ability to resolve issues encountered on the problem path using the warning/error messages produced by the feature. When an issue was encountered, stdout messages (without trace strings configured) were consoled. Even if stdout was sufficient to overcome the issue, tracing was also enabled. This resulted in comparison of the more detailed trace against the regular output – if the trace was found to be more informative when retrospectively tackling an issue, this was noted. Overall, if enabling tracing was perceivably beneficial to diagnose issues over regular output, this would justify raising a feature for greater emphasis on informing users of the trace strings provided with mpOpenAPI-2.0, making the feature more accessible. The following trace strings were utilised:
In general, performing the actions of each of the use cases did not result in any issue; problem paths were then defined by making deliberate but plausible mistakes when attempting the use cases.
In response, I raised an issue for this, for which a PR has been raised which has since been tested, and resolves the However, it should be noted that
The Knowledge Center entry for CWWKO1661E states to "Gather logs and contact IBM service". This was not sufficient to service this issue - When enabling the 'mpopenapi=event=enabled' trace string, the following output is more informative as to the cause of the error:
Enabling the 'io.smallrye.openapi.*=all' trace string led to diagnosis of the issue. This directs the user toward an FFDC, indicating that the problem is caused by the
This gave co-ordinates to the section of the OpenAPI document which was missing, followed by the section of the document which refers to the missing content, making this issue easy to rectify.
In conclusion, the problems encountered with We should make a note of tracing/debugging materials within the GA release documentation/material, as
It is important to note that as I am new to the development of this feature, I was able to take the perspective of a user without comprehensive knowledge of the internals of The same use cases were also demonstrated to @Joseph-Cass, who develops
@Joseph-Cass Agreed:
Yes, see previous comment.
WL3-CDI
N/A |
ID issues are #3445, #340. Martin Smithson has move to WebSphere Automation. Tom Evans talked to Martin who agreed to be the SME, but the WebSphere Automation eGA takes priority. The blog post for the beta will be used for the blog post for the eGA of this epic. Customers will have the necessary information to use this epic until the docs are done. I'm approving this epic. |
@scottcurtis2605 , a few comments on serviceability:
Your comments about |
@donbourne I'll open an issue regarding this - while the documentation does give a temporary solution, I think for a permament solution going forward it would be good to have the Current:
Proposed:
|
@scottcurtis2605 that sounds better (so that you don't have to look in FFDC to find exception info). Can you please open an issue for that and provide link here, so I can sign off? |
@donbourne Here is the issue and the associated PR. |
Support MicroProfile Open API 2.0 release and also baseline Jakarta EE9.
List of Steps to complete or get approvals / sign-offs for Onboarding to the Liberty release (GM date)
Instructions:
TARGET COMPLETION DATE Before Development Starts or 8 weeks before Onboarding
1 week before beta GA
Legal
3 weeks before Onboarding
Translation
3 weeks before Onboarding
Feature Complete
2 weeks before Onboarding
Focal Point Approvals
2 to 1 week before Onboarding
You MUST have the Design Approved or No Design Approved label before requesting focal point approvals.
All features (both "Design Approved" and "No Design Approved")
"Design Approved" features
Ready for GA
1 week before Onboarding
1 week before GA
Other deliverbles
The text was updated successfully, but these errors were encountered: