[4.x] Allow SE users work with OpenApiFeature instead of SeOpenApiFeature #7103
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.
Resolves #7041
Previously, SE developers would directly use
SeOpenApiFeature
innima/openapi
. We want them to not use "SE" anything.That class was the only one in
nima/openapi
. This PR:SeOpenApiFeature
tohelidon/openapi
and makes it non-public.OpenApiFeature#builder()
which returns anOpenApiFeature.Builder
which actually returns a builder forSeOpenApiFeature
. Going forward SE developers will useOpenApiFeature.builder()
(instead ofSeOpenApiFeature.builder()
) to prepare the feature so they can add it to their routing.nima/openapi
tomicroprofile/openapi
. Those tests and resources refer to SmallRye OpenAPI elements. We continue to rely on SmallRye for our MP OpenAPI implementation but we will not for SE. So those tests could not move tohelidon/openapi
or we'd have to add the SmallRye dependency to that component.OpenApiFeature#builder
method.nima/openapi
from thenima
module.This PR does not address doc changes; we have a separate issue to address the OpenAPI doc.
Also, this PR leaves some of the transplanted tests commented out (due to other pressing tasks!); they were originally written to work with SE and need to be adjusted to work with MP now that they are in MP OpenAPI now.
@romain-grecourt I did not see any references to
SeOpenApiFeature
in thearchetypes
directory but I've tagged you as a reviewer just so you can double-check.