mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-18 08:31:20 +00:00
Merge branch 'master' into not-escape-enum-value
Conflicts: modules/swagger-codegen/src/main/resources/Java/enumClass.mustache
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
public enum {{{datatypeWithEnum}}} {
|
||||
{{#allowableValues}}{{#enumVars}}{{{name}}}("{{{value}}}"){{^-last}},
|
||||
{{/-last}}{{#-last}};{{/-last}}{{/enumVars}}{{/allowableValues}}
|
||||
@@ -9,6 +10,7 @@ public enum {{{datatypeWithEnum}}} {
|
||||
}
|
||||
|
||||
@Override
|
||||
@JsonValue
|
||||
public String toString() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -98,8 +98,8 @@ ext {
|
||||
dependencies {
|
||||
compile "com.squareup.okhttp:okhttp:$okhttp_version"
|
||||
compile "com.squareup.retrofit:retrofit:$retrofit_version"
|
||||
compile 'com.google.code.gson:gson:$gson_version'
|
||||
compile 'com.squareup.retrofit:converter-gson:$retrofit_version'
|
||||
compile "com.google.code.gson:gson:$gson_version"
|
||||
compile "com.squareup.retrofit:converter-gson:$retrofit_version"
|
||||
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
|
||||
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
|
||||
testCompile "junit:junit:$junit_version"
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.io.Serializable;{{/serializableModel}}
|
||||
import java.util.Objects;
|
||||
|
||||
import io.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.*;
|
||||
{{#models}}
|
||||
|
||||
{{#model}}{{#description}}
|
||||
|
||||
Reference in New Issue
Block a user