-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
Bug Report Checklist
- Have you provided a full/minimal spec to reproduce the issue?
- Have you validated the input using an OpenAPI validator (example)?
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- What's the actual output vs expected output?
- [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When a given OpenAPI specification contains an info block, this gets generated as OpenAPIDefinition annotation on top
of the class RestApplication. The contact name and e-mail are added to the OpenAPIDefinition, only the contact url is missing.
openapi-generator version
7.2.0
OpenAPI declaration file content or url
openapi: 3.0.3
info:
contact:
name: The API Team
url: https://organisation.org/the-api-team
email: the-api-team@organisation.orgGeneration Details
The config option useMicroProfileOpenAPIAnnotations needs to be set to true.
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>7.2.0</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/openapi.yaml</inputSpec>
<generatorName>jaxrs-spec</generatorName>
<configOptions>
<useMicroProfileOpenAPIAnnotations>true</useMicroProfileOpenAPIAnnotations>
<groupId>org.organisation</groupId>
<artifactId>some-api</artifactId>
<packageName>org.organisation</packageName>
<library>quarkus</library>
<supportAsync>true</supportAsync>
<useJakartaEe>true</useJakartaEe>
<dateLibrary>java8</dateLibrary>
<sourceFolder>src/main/java</sourceFolder>
<interfaceOnly>true</interfaceOnly>
<useTags>true</useTags>
<disallowAdditionalPropertiesIfNotPresent>true</disallowAdditionalPropertiesIfNotPresent>
<legacyDiscriminatorBehavior>false</legacyDiscriminatorBehavior>
<serializableModel>true</serializableModel>
<apiPackage>${default.package}.handler</apiPackage>
<modelPackage>${default.package}.model</modelPackage>
<invokerPackage>${default.package}.handler</invokerPackage>
</configOptions>
</configuration>
</execution>
</executions>
</plugin>Steps to reproduce
./mvnw generate-sources
Reactions are currently unavailable