File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed
modules/swagger-codegen/src/main/resources/JavaSpring Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 1
1
package { {package} };
2
2
3
3
{ {^isOpenFeign} }
4
- import org.springframework.cloud.netflix.feign.FeignClient;
4
+ import org.springframework.cloud.netflix.feign.FeignClient;
5
5
{ {/isOpenFeign} }
6
6
{ {#isOpenFeign} }
7
- import org.springframework.cloud.openfeign.FeignClient;
7
+ import org.springframework.cloud.openfeign.FeignClient;
8
8
{ {/isOpenFeign} }
9
9
import { {configPackage} }.ClientConfiguration;
10
10
Original file line number Diff line number Diff line change 1
1
/**
2
2
* { {#description} }{ {.} }{ {/description} }{ {^description} }{ {classname} }{ {/description} }
3
- */{ {#description} }
4
- @ApiModel(description = "{ {{description} }}"){ {/description} }
5
- { {#useBeanValidation} }@Validated{ {/useBeanValidation} }
6
- { {> generatedAnnotation} }{ {#discriminator} }{ {> typeInfoAnnotation} }{ {/discriminator} }{ {> xmlAnnotation} }
7
-
8
- { {#notNullJacksonAnnotation} }@JsonInclude(JsonInclude.Include.NON_NULL){ {/notNullJacksonAnnotation} }
9
-
3
+ */
4
+ { {#description} }
5
+ @ApiModel(description = "{ {{description} }}")
6
+ { {/description} }
7
+ { {#useBeanValidation} }
8
+ @Validated
9
+ { {/useBeanValidation} }
10
+ { {> generatedAnnotation} }
11
+ { {#discriminator} }
12
+ { {> typeInfoAnnotation} }
13
+ { {/discriminator} }
14
+ { {> xmlAnnotation} }
15
+ { {#notNullJacksonAnnotation} }
16
+ @JsonInclude(JsonInclude.Include.NON_NULL)
17
+ { {/notNullJacksonAnnotation} }
10
18
public class { {classname} } { {#parent} }extends { {{parent} }}{ {/parent} } { {#serializableModel} }implements Serializable{ {/serializableModel} } {
11
19
{{#serializableModel} }
12
20
private static final long serialVersionUID = 1L;
You can’t perform that action at this time.
0 commit comments