use of com.linkedin.data.schema.DataSchemaResolver in project rest.li by linkedin.
the class DefaultDocumentationRequestHandler method initializeRenderers.
private void initializeRenderers() {
final DataSchemaResolver schemaResolver = new ClasspathResourceDataSchemaResolver();
final ResourceSchemaCollection resourceSchemas = ResourceSchemaCollection.loadOrCreateResourceSchema(_rootResources);
final RestLiResourceRelationship relationships = new RestLiResourceRelationship(resourceSchemas, schemaResolver);
_htmlRenderer = getHtmlDocumentationRenderer(schemaResolver, relationships);
_jsonRenderer = getJsonDocumentationRenderer(schemaResolver, relationships);
}
Aggregations