[Code Update - Chapter 04] Code update for MP OpenAPI 4.1 #71
Open
ttelang wants to merge 10 commits intomicroprofile:mainfrom
Open
[Code Update - Chapter 04] Code update for MP OpenAPI 4.1 #71ttelang wants to merge 10 commits intomicroprofile:mainfrom
ttelang wants to merge 10 commits intomicroprofile:mainfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Below are the list of changes:
pom.xmlPaymentResource.javaCustomModelReader.javajsonSchemaDialect.ExtensionFilter.javagetExtension()andhasExtension()methods.SecuredProductApplication.javaAsyncRequest.javaandProcessResult.javaConditionalProduct.java@DependentRequiredannotation in MicroProfile OpenAPI 4.1.ProductRecord.javaProductWithOptional.java