@Test public void testProcessArraySchema() throws Exception { Schema property = new Schema(); SchemaProcessor propertyProcessor = new SchemaProcessor(cache, openAPI); propertyProcessor.processSchema(property); ArraySchema model = new ArraySchema(); model.setItems(property); SchemaProcessor schemaProcessor = new SchemaProcessor(cache, openAPI); schemaProcessor.processSchema(model); assertEquals(property,model.getItems()); }
public void processArraySchema(ArraySchema arraySchema) { final Schema items = arraySchema.getItems(); if (items.get$ref() != null) { processReferenceSchema(items); }else{ processSchemaType(items); } }
SchemaProcessor { public void processArraySchema(ArraySchema arraySchema) { final Schema items = arraySchema.getItems(); if (items.get$ref() != null) { processReferenceSchema(items); }else{ processSchemaType(items); } } }
SchemaProcessor { public void processArraySchema(ArraySchema arraySchema) { final Schema items = arraySchema.getItems(); if (items.get$ref() != null) { processReferenceSchema(items); }else{ processSchemaType(items); } } SchemaProcessor(ResolverCache cache, OpenAPI openAPI); }
SchemaProcessor { public void processArraySchema(ArraySchema arraySchema) { final Schema items = arraySchema.getItems(); if (items.get$ref() != null) { processReferenceSchema(items); }else{ processSchemaType(items); } } 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 processArraySchema(ArraySchema arraySchema) { final Schema items = arraySchema.getItems(); if (items.get$ref() != null) { processReferenceSchema(items); }else{ processSchemaType(items); } } 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);  }