File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 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 {
555555 }
556556
557557 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 ());
560560 }
561561
562562 method = swaggerLoaderClass .getDeclaredMethod ("setPrettyPrint" , Boolean .class );
Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ public void testSchemaResolutionAllOfWithRecordTest(){
291291
292292 @ Test
293293 public void testSchemaResolutionAllOfRefWithRecordsTest (){
294+ ModelConverters .reset ();
294295 Reader reader = new Reader (new SwaggerConfiguration ().openAPI (new OpenAPI ()).schemaResolution (Schema .SchemaResolution .ALL_OF_REF ));
295296 OpenAPI openAPI = reader .read (SchemaResolutionWithRecordsResource .class );
296297 String yaml = "openapi: 3.0.1\n " +
@@ -379,5 +380,6 @@ public void testSchemaResolutionAllOfRefWithRecordsTest(){
379380 " allOf:\n " +
380381 " - $ref: '#/components/schemas/InlineSchemaPropertySimple'\n " ;
381382 SerializationMatchers .assertEqualsToYaml (openAPI , yaml );
383+ ModelConverters .reset ();
382384 }
383385}
You can’t perform that action at this time.
0 commit comments