Skip to content

[Code Update - Chapter 04] Code update for MP OpenAPI 4.1 #71

Open
ttelang wants to merge 10 commits intomicroprofile:mainfrom
ttelang:code-update-mp-openapi-4.1
Open

[Code Update - Chapter 04] Code update for MP OpenAPI 4.1 #71
ttelang wants to merge 10 commits intomicroprofile:mainfrom
ttelang:code-update-mp-openapi-4.1

Conversation

@ttelang
Copy link
Copy Markdown
Contributor

@ttelang ttelang commented Apr 24, 2026

Below are the list of changes:

pom.xml

  • Updating dependencies for Fault Tolerance 4.1 (MicroProfile 7.1)
  • Migrating to Java 21

PaymentResource.java

  • Updated with new methods to demonstrate New MicroProfile OpenAPI 4.1 features

CustomModelReader.java

  • Custom OpenAPI model reader class demonstrating support for jsonSchemaDialect.

ExtensionFilter.java

  • A new class to demonstrate the use of getExtension() and hasExtension() methods.

SecuredProductApplication.java

  • Demonstrates how to document multiple security mechanisms for your API.

AsyncRequest.java and ProcessResult.java

  • New entity classes used to demonstrate the documentation of async APIs

ConditionalProduct.java

  • Class to demonstrates the @DependentRequired annotation in MicroProfile OpenAPI 4.1.

ProductRecord.java

  • Demonstrates support for Java Records.

ProductWithOptional.java

  • Demonstrates support for Optional types.

ttelang added 10 commits April 24, 2026 20:25
Application class demonstrating security scheme definitions in MicroProfile OpenAPI 4.1.
 * This shows how to document multiple security mechanisms for your API.
OpenAPI filter demonstrating the use of getExtension() and hasExtension() methods.
 * This filter is called for each element in the OpenAPI model tree.
Custom OpenAPI model reader demonstrating jsonSchemaDialect support.
* This reader is called once during application startup to build/enhance the OpenAPI model.
Adding `processProductAsync()` method  demonstrating how to document asynchronous operations with callback URLs.
Product information as a Java Record 
* demonstrates MicroProfile OpenAPI 4.1 support for Java Records.
Product with optional fields.
 * Demonstrates MicroProfile OpenAPI 4.1 support for Optional<T> types.
Request object for async product processing.
Product with conditional validation.
 * Demonstrates the @DependentRequired annotation in MicroProfile OpenAPI 4.1.
Result object for async product processing.
@ttelang ttelang marked this pull request as ready for review April 24, 2026 16:48
@ttelang ttelang changed the title [Code Update - Chapter 04 - MP OpenAPI 4.1] Code update for MP OpenAPI 4.1 [Code Update - Chapter 04] Code update for MP OpenAPI 4.1 Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant