You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
openapi-generator version
7.4.0
pom.xml :
<plugin><groupId>org.openapitools</groupId><artifactId>openapi-generator-maven-plugin</artifactId><version>7.4.0</version><executions><!-- generate serve stub out of open API definition. --><!-- execute the plugin only when install is called --><execution><id>generate-ips-server-skeleton</id><phase>install</phase><goals><goal>generate</goal></goals><configuration><inputSpec>${project.basedir}/api_spec/openapi.yaml</inputSpec><generatorName>spring</generatorName><library>spring-boot</library><apiPackage>com.jaroslavbeno.controller</apiPackage><modelPackage>com.jaroslavbeno.model</modelPackage><supportingFilesToGenerate>ApiUtil.java</supportingFilesToGenerate><globalProperties><skipFormModel>false</skipFormModel></globalProperties><configOptions><delegatePattern>true</delegatePattern><sourceFolder>/src/main/java</sourceFolder><implFolder>/src/main/java</implFolder><additionalModelTypeAnnotations>@com.fasterxml.jackson.annotation.JsonInclude(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL)</additionalModelTypeAnnotations><hideGenerationTimestamp>true</hideGenerationTimestamp><useJakartaEe>true</useJakartaEe></configOptions></configuration></execution>
Steps to reproduce
I have got:
requestBody:
description: "Search Institutional Member Accounts based on search criteria.If there are no matches, an empty array will be returned"content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/SearchMemberRequest'
- $ref: '#/components/schemas/SearchMemberCardRequest'x-class-extra-annotation: "@com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.jaroslavbeno.SearchDeserializer.class)"required: true
Now it will generate one interface and two classes implementing that interface.
I have to manually add annotation to interface:
Bug Report Checklist
Description
openapi-generator version
7.4.0
pom.xml :
Steps to reproduce
I have got:
Now it will generate one interface and two classes implementing that interface.
I have to manually add annotation to interface:
x-class-extra-annotation is ignored
Can you add a special x- for interfaces?
x-interface-extra-annotation
The text was updated successfully, but these errors were encountered: