@Test public void testProcessRefProperty_InternalRef() throws Exception { expectCreationOfExternalRefProcessor(); final String expectedRef = "#/components/schemas/foo"; final Schema property = new Schema().$ref(expectedRef); new SchemaProcessor(cache, openAPI).processSchema(property); new FullVerifications() {{ }}; assertEquals(property.get$ref(), expectedRef); }
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);  }