PropertiesTableComponent extends MarkupComponent<PropertiesTableComponent.Parameters> { PropertiesTableComponent(Swagger2MarkupConverter.SwaggerContext context, DocumentResolver definitionDocumentResolver) { super(context); this.definitionDocumentResolver = definitionDocumentResolver; this.tableComponent = new TableComponent(context); } PropertiesTableComponent(Swagger2MarkupConverter.SwaggerContext context,
      DocumentResolver definitionDocumentResolver); static PropertiesTableComponent.Parameters parameters(Map<String, Property> properties,
      String parameterName,
      List<ObjectType> inlineDefinitions); MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params);  }
@Test public void testPropertiesTableComponent() throws URISyntaxException { Path file = Paths.get(PropertiesTableComponentTest.class.getResource("/yaml/swagger_petstore.yaml").toURI()); Swagger2MarkupConverter converter = Swagger2MarkupConverter.from(file).build(); Swagger swagger = converter.getContext().getSchema(); Model petModel = swagger.getDefinitions().get("Pet"); Swagger2MarkupConverter.SwaggerContext context = converter.getContext(); MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder(); List<ObjectType> localDefinitions = new ArrayList<>(); markupDocBuilder = new PropertiesTableComponent(context, new DefinitionDocumentResolverFromDefinition(context)) .apply(markupDocBuilder, PropertiesTableComponent.parameters(petModel.getProperties(), "Pet", localDefinitions)); markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8); Path expectedFile = getExpectedFile(COMPONENT_NAME); DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME)); }