class DefinitionComponent extends MarkupComponent<DefinitionComponent.Parameters> {

    public DefinitionComponent(Swagger2MarkupConverter.SwaggerContext context,
                               DocumentResolver definitionsDocumentResolver) {
        super(context);
        this.definitions = context.getSchema().getDefinitions();
        this.definitionsDocumentResolver = definitionsDocumentResolver;
        POLYMORPHISM_NATURE = new HashMap<ObjectTypePolymorphism.Nature, String>() {{
            put(ObjectTypePolymorphism.Nature.COMPOSITION, labels.getLabel(POLYMORPHISM_NATURE_COMPOSITION));
            put(ObjectTypePolymorphism.Nature.INHERITANCE, labels.getLabel(POLYMORPHISM_NATURE_INHERITANCE));
        }};
        propertiesTableComponent = new PropertiesTableComponent(context, definitionsDocumentResolver);
    }

    public  DefinitionComponent(Swagger2MarkupConverter.SwaggerContext context,
                               DocumentResolver definitionsDocumentResolver);

}