-
Notifications
You must be signed in to change notification settings - Fork 566
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
MP OpenAPI 3.1 support for 4.x #6954
Conversation
…ged with the artifact
…ex from Hibernate ORM
…on test create jandex earlier so it will be in the test jar
… references from hand-crafted TOC
.../quickstarts/helidon-quickstart-se/src/main/java/io/helidon/examples/quickstart/se/Main.java
Show resolved
Hide resolved
microprofile/lra/jax-rs/src/main/java/io/helidon/microprofile/lra/LraCdiExtension.java
Show resolved
Hide resolved
microprofile/openapi/src/main/java/io/helidon/microprofile/openapi/MpOpenApiFeature.java
Show resolved
Hide resolved
microprofile/openapi/src/main/java/io/helidon/microprofile/openapi/OpenApiParser.java
Outdated
Show resolved
Hide resolved
microprofile/openapi/src/main/java/io/helidon/microprofile/openapi/Serializer.java
Outdated
Show resolved
Hide resolved
archetypes/helidon/src/main/archetype/mp/oci/files/pom.xml.mustache
Outdated
Show resolved
Hide resolved
...rations/neo4j/neo4j-mp/src/test/java/io/helidon/examples/integrations/neo4j/mp/MainTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left comments; I'll approve if you want but left them as simple comments for now
microprofile/lra/jax-rs/src/main/java/io/helidon/microprofile/lra/LraCdiExtension.java
Show resolved
Hide resolved
...openapi/src/main/java/io/helidon/microprofile/openapi/HelidonAnnotationScannerExtension.java
Outdated
Show resolved
Hide resolved
...openapi/src/main/java/io/helidon/microprofile/openapi/HelidonAnnotationScannerExtension.java
Outdated
Show resolved
Hide resolved
microprofile/openapi/src/main/java/io/helidon/microprofile/openapi/MPOpenAPIBuilder.java
Show resolved
Hide resolved
microprofile/openapi/src/main/java/io/helidon/microprofile/openapi/MPOpenAPIBuilder.java
Show resolved
Hide resolved
microprofile/openapi/src/main/java/io/helidon/microprofile/openapi/MPOpenAPIBuilder.java.save
Outdated
Show resolved
Hide resolved
} | ||
|
||
// See if we should parse the value fully. | ||
switch (value.charAt(0)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Minor; could do return switch ...
)
* @throws IOException in case of I/O problems | ||
*/ | ||
static OpenAPI parse(Map<Class<?>, ExpandedTypeDescription> types, InputStream inputStream) throws IOException { | ||
try (Reader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK to not have a BufferedReader
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically looks fine
Resolves #5820
This PR adds MP OpenAPI 3.1 support to 4.x.
Do not be overly alarmed by the number of changed files! Read below.
Some details:
org.jboss
toio.smallrye
for its GAV coordinates while keeping theorg.jboss.jandex
packages. This PR adopts the newio.smallrye
Jandex artifacts (code and maven plug-in). There are related changes in manypom.xml
(inflating the changed-file count) and a few other files.nima/openapi
and provides only limited and very simple support for a static OpenAPI document file. This will change in a later PR focused on SE OpenAPI support.)openapi
module.org.hibernate.orm:hibernate-orm
which depends on Weld which in turn depends on Jandex. The ORM module pulled in the older release of Jandex, so in our Hibernate CDI component this PR adds an exclusion oforg.jboss:jandex
so it also uses the newerio.smallrye
packaging. Fortunately, it seems the ORM code does not use now-removed APIs in Jandex.