ParameterTableComponent extends MarkupComponent<ParameterTableComponent.Parameters> { ParameterTableComponent(Swagger2MarkupConverter.SwaggerContext context, DocumentResolver definitionDocumentResolver) { super(context); this.definitionDocumentResolver = Validate.notNull(definitionDocumentResolver, "DocumentResolver must not be null"); this.tableComponent = new TableComponent(context); } ParameterTableComponent(Swagger2MarkupConverter.SwaggerContext context,
                            DocumentResolver definitionDocumentResolver); static ParameterTableComponent.Parameters parameters(SwaggerPathOperation operation,
                                                                List<ObjectType> inlineDefinitions,
                                                                int titleLevel); @Override MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params);  }
@Test public void testParameterTableComponent() throws URISyntaxException { Path file = Paths.get(ParameterTableComponentTest.class.getResource("/yaml/swagger_petstore.yaml").toURI()); Swagger2MarkupConverter converter = Swagger2MarkupConverter.from(file).build(); Swagger swagger = converter.getContext().getSchema(); io.swagger.models.Path path = swagger.getPaths().get("/pets"); List<SwaggerPathOperation> pathOperations = PathUtils.toPathOperationsList("/pets", path); Swagger2MarkupConverter.SwaggerContext context = converter.getContext(); MarkupDocBuilder markupDocBuilder = context.createMarkupDocBuilder(); markupDocBuilder = new ParameterTableComponent(context, new DefinitionDocumentResolverFromOperation(context)) .apply(markupDocBuilder, ParameterTableComponent.parameters(pathOperations.get(0), new ArrayList<>(), 3)); markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8); Path expectedFile = getExpectedFile(COMPONENT_NAME); DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME)); }