@Test public void testProcessMapProperty_AdditionalPropertiesIsRefProperty() throws Exception { expectCreationOfExternalRefProcessor(); final String ref = "http: final Schema refProperty = new Schema().$ref(ref); refProperty.setAdditionalProperties(refProperty); expectCallToExternalRefProcessor(ref, RefFormat.URL, "bar"); new SchemaProcessor(cache, openAPI).processSchema(refProperty); new FullVerifications() {{ }}; assertEquals((((Schema)refProperty.getAdditionalProperties()).get$ref()), "#/components/schemas/bar"); }
public void processSchema(Schema schema) { if (schema == null) { return; } if (schema.get$ref() != null) { processReferenceSchema(schema); } else { processSchemaType(schema); } }
SchemaProcessor { public void processSchema(Schema schema) { if (schema == null) { return; } if (schema.get$ref() != null) { processReferenceSchema(schema); } else { processSchemaType(schema); } } }
SchemaProcessor { public void processSchema(Schema schema) { if (schema == null) { return; } if (schema.get$ref() != null) { processReferenceSchema(schema); } else { processSchemaType(schema); } } SchemaProcessor(ResolverCache cache, OpenAPI openAPI); }
SchemaProcessor { public void processSchema(Schema schema) { if (schema == null) { return; } if (schema.get$ref() != null) { processReferenceSchema(schema); } else { processSchemaType(schema); } } SchemaProcessor(ResolverCache cache, OpenAPI openAPI); void processSchema(Schema schema); void processSchemaType(Schema schema); void processPropertySchema(Schema schema); void processComposedSchema(ComposedSchema composedSchema); void processArraySchema(ArraySchema arraySchema); }
SchemaProcessor { public void processSchema(Schema schema) { if (schema == null) { return; } if (schema.get$ref() != null) { processReferenceSchema(schema); } else { processSchemaType(schema); } } SchemaProcessor(ResolverCache cache, OpenAPI openAPI); void processSchema(Schema schema); void processSchemaType(Schema schema); void processPropertySchema(Schema schema); void processComposedSchema(ComposedSchema composedSchema); void processArraySchema(ArraySchema arraySchema);  }