We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
7.1.0
"DefaultPublicationType": { "type": "string", "enum": [ "FLIGHT_DATA", "ARRIVAL_SEQUENCE_DATA", "AIRPORT_CONFIGURATION_DATA" ] }, "OtherPublicationType": { "type": "string", "pattern": "^OTHER:[A-Z_][A-Z0-9_]*$" }, "Publication": { "description": "A SWIM Publication identifies a topic together with its content type, formal content type definition, and supported filters.", "oneOf": [ { "$ref": "#/components/schemas/DefaultPublicationType" }, { "$ref": "#/components/schemas/OtherPublicationType" } ] },
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public interface Publication { }
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen") public enum DefaultPublicationType { FLIGHT_DATA("FLIGHT_DATA"), ARRIVAL_SEQUENCE_DATA("ARRIVAL_SEQUENCE_DATA"), AIRPORT_CONFIGURATION_DATA("AIRPORT_CONFIGURATION_DATA"); private String value; DefaultPublicationType(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static DefaultPublicationType fromValue(String value) { for (DefaultPublicationType b : DefaultPublicationType.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } }
<configuration> <!-- see: https://openapi-generator.tech/docs/generators/spring/--> <skipValidateSpec>true</skipValidateSpec> <inputSpec>${project.basedir}/src/main/resources/openapi.json</inputSpec> <generatorName>spring</generatorName> <configOptions> <useSpringBoot3>true</useSpringBoot3> <useOneOfInterfaces>true</useOneOfInterfaces> <useOptional>true</useOptional> <annotationLibrary>swagger2</annotationLibrary> <delegatePattern>true</delegatePattern> <hideGenerationTimestamp>true</hideGenerationTimestamp> <hateoas>true</hateoas> <useBeanValidation>true</useBeanValidation> <performBeanValidation>true</performBeanValidation> </configOptions> </configuration>
#16672 #14807 #11715 #15
The generated enumeration should implement the interface.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report Checklist
Description
openapi-generator version
7.1.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
#16672 #14807 #11715 #15
Suggest a fix
The generated enumeration should implement the interface.
The text was updated successfully, but these errors were encountered: