test_class.file: swagger2markup/src/test/java/io/github/swagger2markup/internal/component/PathOperationComponentTest.java
test_class.identifier: PathOperationComponentTest
test_class.superclass: extends AbstractComponentTest
test_case.body: @Test
      public void testPathOperationComponent() throws URISyntaxException {
          String COMPONENT_NAME = "path_operation";
          Path outputDirectory = getOutputFile(COMPONENT_NAME);
          FileUtils.deleteQuietly(outputDirectory.toFile());
  
          //Given
          Path file = Paths.get(PathOperationComponentTest.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();
  
          //When
          markupDocBuilder = new PathOperationComponent(context,
                  new DefinitionDocumentResolverFromOperation(context),
                  new SecurityDocumentResolver(context)).
                  apply(markupDocBuilder, PathOperationComponent.parameters(pathOperations.get(0)));
  
          markupDocBuilder.writeToFileWithoutExtension(outputDirectory, StandardCharsets.UTF_8);
  
          //Then
          Path expectedFile = getExpectedFile(COMPONENT_NAME);
          DiffUtils.assertThatFileIsEqual(expectedFile, outputDirectory, getReportName(COMPONENT_NAME));
      }
test_case.class_method_signature: PathOperationComponentTest.testPathOperationComponent()
test_case.full_signature: @Test public void testPathOperationComponent()
test_case.identifier: testPathOperationComponent
test_case.invocations: getOutputFile deleteQuietly toFile get toURI getResource build from getSchema getContext get getPaths toPathOperationsList getContext createMarkupDocBuilder apply parameters get writeToFileWithoutExtension getExpectedFile assertThatFileIsEqual getReportName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPathOperationComponent()
focal_class.declarator: definitionDocumentResolver
focal_class.modifier: private final
focal_class.original_string: private final DocumentResolver definitionDocumentResolver;
focal_class.type: DocumentResolver
focal_class.var_name: definitionDocumentResolver
focal_class.declarator: definitions
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Model> definitions;
focal_class.type: Map<String, Model>
focal_class.var_name: definitions
focal_class.declarator: propertiesTableComponent
focal_class.modifier: private final
focal_class.original_string: private final PropertiesTableComponent propertiesTableComponent;
focal_class.type: PropertiesTableComponent
focal_class.var_name: propertiesTableComponent
focal_class.declarator: parameterTableComponent
focal_class.modifier: private final
focal_class.original_string: private final ParameterTableComponent parameterTableComponent;
focal_class.type: ParameterTableComponent
focal_class.var_name: parameterTableComponent
focal_class.declarator: consumesComponent
focal_class.modifier: private final
focal_class.original_string: private final ConsumesComponent consumesComponent;
focal_class.type: ConsumesComponent
focal_class.var_name: consumesComponent
focal_class.declarator: producesComponent
focal_class.modifier: private final
focal_class.original_string: private final ProducesComponent producesComponent;
focal_class.type: ProducesComponent
focal_class.var_name: producesComponent
focal_class.declarator: securitySchemeComponent
focal_class.modifier: private final
focal_class.original_string: private final SecuritySchemeComponent securitySchemeComponent;
focal_class.type: SecuritySchemeComponent
focal_class.var_name: securitySchemeComponent
focal_class.declarator: bodyParameterComponent
focal_class.modifier: private final
focal_class.original_string: private final BodyParameterComponent bodyParameterComponent;
focal_class.type: BodyParameterComponent
focal_class.var_name: bodyParameterComponent
focal_class.declarator: responseComponent
focal_class.modifier: private final
focal_class.original_string: private final ResponseComponent responseComponent;
focal_class.type: ResponseComponent
focal_class.var_name: responseComponent
focal_class.file: swagger2markup/src/main/java/io/github/swagger2markup/internal/component/PathOperationComponent.java
focal_class.identifier: PathOperationComponent
focal_class.class_method_signature: PathOperationComponent.PathOperationComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver,
                                    DocumentResolver securityDocumentResolver)
focal_class.full_signature: public  PathOperationComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver,
                                    DocumentResolver securityDocumentResolver)
focal_class.identifier: PathOperationComponent
focal_class.modifiers: public
focal_class.parameters: (Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver,
                                    DocumentResolver securityDocumentResolver)
focal_class.signature:  PathOperationComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver,
                                    DocumentResolver securityDocumentResolver)
focal_class.class_method_signature: PathOperationComponent.parameters(SwaggerPathOperation operation)
focal_class.full_signature: public static PathOperationComponent.Parameters parameters(SwaggerPathOperation operation)
focal_class.identifier: parameters
focal_class.modifiers: public static
focal_class.parameters: (SwaggerPathOperation operation)
focal_class.return: PathOperationComponent.Parameters
focal_class.signature: PathOperationComponent.Parameters parameters(SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.apply(MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.full_signature: @Override public MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.return: MarkupDocBuilder
focal_class.signature: MarkupDocBuilder apply(MarkupDocBuilder markupDocBuilder, Parameters params)
focal_class.class_method_signature: PathOperationComponent.buildOperationTitle(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.full_signature: private void buildOperationTitle(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.identifier: buildOperationTitle
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.return: void
focal_class.signature: void buildOperationTitle(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.buildOperationTitle(MarkupDocBuilder markupDocBuilder, String title, String anchor)
focal_class.full_signature: private void buildOperationTitle(MarkupDocBuilder markupDocBuilder, String title, String anchor)
focal_class.identifier: buildOperationTitle
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, String title, String anchor)
focal_class.return: void
focal_class.signature: void buildOperationTitle(MarkupDocBuilder markupDocBuilder, String title, String anchor)
focal_class.class_method_signature: PathOperationComponent.buildDeprecatedSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.full_signature: private void buildDeprecatedSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.identifier: buildDeprecatedSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.return: void
focal_class.signature: void buildDeprecatedSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.buildDescriptionSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.full_signature: private void buildDescriptionSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.identifier: buildDescriptionSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.return: void
focal_class.signature: void buildDescriptionSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.buildParametersSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.full_signature: private List<ObjectType> buildParametersSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.identifier: buildParametersSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.return: List<ObjectType>
focal_class.signature: List<ObjectType> buildParametersSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.buildBodyParameterSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.full_signature: private List<ObjectType> buildBodyParameterSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.identifier: buildBodyParameterSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.return: List<ObjectType>
focal_class.signature: List<ObjectType> buildBodyParameterSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.buildResponsesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.full_signature: private List<ObjectType> buildResponsesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.identifier: buildResponsesSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.return: List<ObjectType>
focal_class.signature: List<ObjectType> buildResponsesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.buildSectionTitle(MarkupDocBuilder markupDocBuilder, String title)
focal_class.full_signature: private void buildSectionTitle(MarkupDocBuilder markupDocBuilder, String title)
focal_class.identifier: buildSectionTitle
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, String title)
focal_class.return: void
focal_class.signature: void buildSectionTitle(MarkupDocBuilder markupDocBuilder, String title)
focal_class.class_method_signature: PathOperationComponent.addInlineDefinitionTitle(MarkupDocBuilder markupDocBuilder, String title, String anchor)
focal_class.full_signature: private void addInlineDefinitionTitle(MarkupDocBuilder markupDocBuilder, String title, String anchor)
focal_class.identifier: addInlineDefinitionTitle
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, String title, String anchor)
focal_class.return: void
focal_class.signature: void addInlineDefinitionTitle(MarkupDocBuilder markupDocBuilder, String title, String anchor)
focal_class.class_method_signature: PathOperationComponent.inlineDefinitions(MarkupDocBuilder markupDocBuilder, List<ObjectType> definitions, String uniquePrefix)
focal_class.full_signature: private void inlineDefinitions(MarkupDocBuilder markupDocBuilder, List<ObjectType> definitions, String uniquePrefix)
focal_class.identifier: inlineDefinitions
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, List<ObjectType> definitions, String uniquePrefix)
focal_class.return: void
focal_class.signature: void inlineDefinitions(MarkupDocBuilder markupDocBuilder, List<ObjectType> definitions, String uniquePrefix)
focal_class.class_method_signature: PathOperationComponent.buildConsumesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.full_signature: private void buildConsumesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.identifier: buildConsumesSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.return: void
focal_class.signature: void buildConsumesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.buildProducesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.full_signature: private void buildProducesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.identifier: buildProducesSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.return: void
focal_class.signature: void buildProducesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.buildTagsSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.full_signature: private void buildTagsSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.identifier: buildTagsSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.return: void
focal_class.signature: void buildTagsSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.buildSecuritySchemeSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.full_signature: private void buildSecuritySchemeSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.identifier: buildSecuritySchemeSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.return: void
focal_class.signature: void buildSecuritySchemeSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation)
focal_class.class_method_signature: PathOperationComponent.getSectionTitleLevel()
focal_class.full_signature: private int getSectionTitleLevel()
focal_class.identifier: getSectionTitleLevel
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getSectionTitleLevel()
focal_class.class_method_signature: PathOperationComponent.buildExamplesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation, List<PageBreakLocations> locations)
focal_class.full_signature: private void buildExamplesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation, List<PageBreakLocations> locations)
focal_class.identifier: buildExamplesSection
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation, List<PageBreakLocations> locations)
focal_class.return: void
focal_class.signature: void buildExamplesSection(MarkupDocBuilder markupDocBuilder, SwaggerPathOperation operation, List<PageBreakLocations> locations)
focal_class.class_method_signature: PathOperationComponent.exampleMap(MarkupDocBuilder markupDocBuilder, Map<String, Object> exampleMap, String operationSectionTitle, String sectionTitle, boolean beforeBreak, boolean afterBreak)
focal_class.full_signature: private void exampleMap(MarkupDocBuilder markupDocBuilder, Map<String, Object> exampleMap, String operationSectionTitle, String sectionTitle, boolean beforeBreak, boolean afterBreak)
focal_class.identifier: exampleMap
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, Map<String, Object> exampleMap, String operationSectionTitle, String sectionTitle, boolean beforeBreak, boolean afterBreak)
focal_class.return: void
focal_class.signature: void exampleMap(MarkupDocBuilder markupDocBuilder, Map<String, Object> exampleMap, String operationSectionTitle, String sectionTitle, boolean beforeBreak, boolean afterBreak)
focal_class.class_method_signature: PathOperationComponent.stripExampleQuotes(String raw)
focal_class.full_signature: private String stripExampleQuotes(String raw)
focal_class.identifier: stripExampleQuotes
focal_class.modifiers: private
focal_class.parameters: (String raw)
focal_class.return: String
focal_class.signature: String stripExampleQuotes(String raw)
focal_class.class_method_signature: PathOperationComponent.parseExample(Object raw)
focal_class.full_signature: private JsonNode parseExample(Object raw)
focal_class.identifier: parseExample
focal_class.modifiers: private
focal_class.parameters: (Object raw)
focal_class.return: JsonNode
focal_class.signature: JsonNode parseExample(Object raw)
focal_class.class_method_signature: PathOperationComponent.buildExampleTitle(MarkupDocBuilder markupDocBuilder, String title)
focal_class.full_signature: private void buildExampleTitle(MarkupDocBuilder markupDocBuilder, String title)
focal_class.identifier: buildExampleTitle
focal_class.modifiers: private
focal_class.parameters: (MarkupDocBuilder markupDocBuilder, String title)
focal_class.return: void
focal_class.signature: void buildExampleTitle(MarkupDocBuilder markupDocBuilder, String title)
focal_class.class_method_signature: PathOperationComponent.applyPathsDocumentExtension(Context context)
focal_class.full_signature: private void applyPathsDocumentExtension(Context context)
focal_class.identifier: applyPathsDocumentExtension
focal_class.modifiers: private
focal_class.parameters: (Context context)
focal_class.return: void
focal_class.signature: void applyPathsDocumentExtension(Context context)
focal_class.superclass: extends MarkupComponent<PathOperationComponent.Parameters>
focal_method.body: public PathOperationComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver,
                                    DocumentResolver securityDocumentResolver) {
          super(context);
          this.definitions = context.getSchema().getDefinitions();
          this.definitionDocumentResolver = Validate.notNull(definitionDocumentResolver, "DocumentResolver must not be null");
          this.propertiesTableComponent = new PropertiesTableComponent(context, definitionDocumentResolver);
          this.parameterTableComponent = new ParameterTableComponent(context, definitionDocumentResolver);
          this.consumesComponent = new ConsumesComponent(context);
          this.producesComponent = new ProducesComponent(context);
          this.securitySchemeComponent = new SecuritySchemeComponent(context, securityDocumentResolver);
          this.bodyParameterComponent = new BodyParameterComponent(context, definitionDocumentResolver);
          this.responseComponent = new ResponseComponent(context, definitionDocumentResolver);
      }
focal_method.class_method_signature: PathOperationComponent.PathOperationComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver,
                                    DocumentResolver securityDocumentResolver)
focal_method.full_signature: public  PathOperationComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver,
                                    DocumentResolver securityDocumentResolver)
focal_method.identifier: PathOperationComponent
focal_method.modifiers: public
focal_method.parameters: (Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver,
                                    DocumentResolver securityDocumentResolver)
focal_method.signature:  PathOperationComponent(Swagger2MarkupConverter.SwaggerContext context,
                                    DocumentResolver definitionDocumentResolver,
                                    DocumentResolver securityDocumentResolver)