File tree 2 files changed +4
-2
lines changed
swagger-gradle-plugin/src/main/java/io/swagger/v3/plugins/gradle/tasks
swagger-java17-support/src/test/java/io/swagger/v3/java17/Reader
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -555,8 +555,8 @@ public void resolve() throws GradleException {
555
555
}
556
556
557
557
if (defaultResponseCode .isPresent () && StringUtils .isNotBlank (groupsValidationStrategy .get ())) {
558
- method = swaggerLoaderClass .getDeclaredMethod ("setGroupsValidationStrategy" , Configuration . GroupsValidationStrategy .class );
559
- method .invoke (swaggerLoader , Configuration . GroupsValidationStrategy . valueOf ( groupsValidationStrategy .get () ));
558
+ method = swaggerLoaderClass .getDeclaredMethod ("setGroupsValidationStrategy" , String .class );
559
+ method .invoke (swaggerLoader , groupsValidationStrategy .get ());
560
560
}
561
561
562
562
method = swaggerLoaderClass .getDeclaredMethod ("setPrettyPrint" , Boolean .class );
Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ public void testSchemaResolutionAllOfWithRecordTest(){
291
291
292
292
@ Test
293
293
public void testSchemaResolutionAllOfRefWithRecordsTest (){
294
+ ModelConverters .reset ();
294
295
Reader reader = new Reader (new SwaggerConfiguration ().openAPI (new OpenAPI ()).schemaResolution (Schema .SchemaResolution .ALL_OF_REF ));
295
296
OpenAPI openAPI = reader .read (SchemaResolutionWithRecordsResource .class );
296
297
String yaml = "openapi: 3.0.1\n " +
@@ -379,5 +380,6 @@ public void testSchemaResolutionAllOfRefWithRecordsTest(){
379
380
" allOf:\n " +
380
381
" - $ref: '#/components/schemas/InlineSchemaPropertySimple'\n " ;
381
382
SerializationMatchers .assertEqualsToYaml (openAPI , yaml );
383
+ ModelConverters .reset ();
382
384
}
383
385
}
You can’t perform that action at this time.
0 commit comments