File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed
src/test/java/io/swagger/codegen/v3/generators Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 208
208
<artifactId >testng</artifactId >
209
209
<version >${testng-version} </version >
210
210
<scope >test</scope >
211
+ <exclusions >
212
+ <exclusion >
213
+ <artifactId >snakeyaml</artifactId >
214
+ <groupId >org.yaml</groupId >
215
+ </exclusion >
216
+ </exclusions >
211
217
</dependency >
212
218
<dependency >
213
219
<groupId >org.slf4j</groupId >
Original file line number Diff line number Diff line change 1
1
package io .swagger .codegen .v3 .generators ;
2
2
3
+ import io .swagger .codegen .v3 .CodegenType ;
3
4
import io .swagger .v3 .oas .models .OpenAPI ;
4
5
import io .swagger .v3 .parser .OpenAPIV3Parser ;
5
6
import io .swagger .v3 .parser .core .models .ParseOptions ;
@@ -16,4 +17,28 @@ protected OpenAPI getOpenAPI(String filePath) {
16
17
17
18
return parseResult .getOpenAPI ();
18
19
}
20
+
21
+ protected DefaultCodegenConfig createConfig () {
22
+ return new DefaultCodegenConfig () {
23
+ @ Override
24
+ public String getDefaultTemplateDir () {
25
+ return null ;
26
+ }
27
+
28
+ @ Override
29
+ public CodegenType getTag () {
30
+ return null ;
31
+ }
32
+
33
+ @ Override
34
+ public String getName () {
35
+ return null ;
36
+ }
37
+
38
+ @ Override
39
+ public String getHelp () {
40
+ return null ;
41
+ }
42
+ };
43
+ }
19
44
}
Original file line number Diff line number Diff line change @@ -1037,7 +1037,7 @@ public void arrayOfArraySchemaTestInOperationResponse() {
1037
1037
Assert .assertTrue (co .imports .contains ("Pet" ));
1038
1038
}
1039
1039
1040
- @ Test (enabled = false , description = "disabled since templates have been moved." )
1040
+ @ Test (description = "disabled since templates have been moved." )
1041
1041
public void generateModel () throws Exception {
1042
1042
folder .create ();
1043
1043
final File output = folder .getRoot ();
You can’t perform that action at this time.
0 commit comments