Class MarkdownRender

  • All Implemented Interfaces:
    Render

    public class MarkdownRender
    extends Object
    implements Render
    • Constructor Detail

      • MarkdownRender

        public MarkdownRender()
    • Method Detail

      • render

        public String render​(com.github.elibracha.model.ChangedOpenApi diff)
        Specified by:
        render in interface Render
      • sectionTitle

        protected String sectionTitle​(String title)
      • listEndpoints

        protected String listEndpoints​(String title,
                                       List<com.github.elibracha.model.Endpoint> endpoints)
      • itemEndpoint

        protected String itemEndpoint​(String method,
                                      String path,
                                      com.github.elibracha.model.ChangedMetadata summary)
      • listEndpoints

        protected String listEndpoints​(List<com.github.elibracha.model.ChangedOperation> changedOperations)
      • responses

        protected String responses​(com.github.elibracha.model.ChangedApiResponse changedApiResponse)
      • listResponse

        protected String listResponse​(String title,
                                      Map<String,​io.swagger.v3.oas.models.responses.ApiResponse> responses)
      • itemResponse

        protected String itemResponse​(String title,
                                      String code,
                                      io.swagger.v3.oas.models.responses.ApiResponse response)
      • itemResponse

        protected String itemResponse​(String code,
                                      com.github.elibracha.model.ChangedResponse response)
      • headers

        protected String headers​(com.github.elibracha.model.ChangedHeaders headers)
      • listHeader

        protected String listHeader​(String title,
                                    Map<String,​io.swagger.v3.oas.models.headers.Header> headers)
      • itemHeader

        protected String itemHeader​(String title,
                                    String name,
                                    io.swagger.v3.oas.models.headers.Header header)
      • itemHeader

        protected String itemHeader​(String code,
                                    com.github.elibracha.model.ChangedHeader header)
      • bodyContent

        protected String bodyContent​(String prefix,
                                     com.github.elibracha.model.ChangedContent changedContent)
      • bodyContent

        protected String bodyContent​(com.github.elibracha.model.ChangedContent changedContent)
      • listContent

        protected String listContent​(String prefix,
                                     String title,
                                     Map<String,​io.swagger.v3.oas.models.media.MediaType> mediaTypes)
      • itemContent

        protected String itemContent​(String title,
                                     String mediaType,
                                     io.swagger.v3.oas.models.media.MediaType content)
      • itemContent

        protected String itemContent​(int deepness,
                                     String mediaType,
                                     com.github.elibracha.model.ChangedMediaType content)
      • schema

        protected String schema​(com.github.elibracha.model.ChangedSchema schema)
      • oneOfSchema

        protected String oneOfSchema​(int deepness,
                                     com.github.elibracha.model.ChangedOneOfSchema schema,
                                     String discriminator)
      • schema

        protected String schema​(int deepness,
                                com.github.elibracha.model.ChangedSchema schema)
      • schema

        protected String schema​(int deepness,
                                io.swagger.v3.oas.models.media.ComposedSchema schema,
                                com.github.elibracha.model.DiffContext context)
      • schema

        protected String schema​(int deepness,
                                io.swagger.v3.oas.models.media.Schema schema,
                                com.github.elibracha.model.DiffContext context)
      • items

        protected String items​(int deepness,
                               com.github.elibracha.model.ChangedSchema schema)
      • items

        protected String items​(int deepness,
                               io.swagger.v3.oas.models.media.Schema schema,
                               com.github.elibracha.model.DiffContext context)
      • properties

        protected String properties​(int deepness,
                                    String title,
                                    Map<String,​io.swagger.v3.oas.models.media.Schema> properties,
                                    boolean showContent,
                                    com.github.elibracha.model.DiffContext context)
      • property

        protected String property​(int deepness,
                                  String name,
                                  com.github.elibracha.model.ChangedSchema schema)
      • property

        protected String property​(int deepness,
                                  String title,
                                  String name,
                                  io.swagger.v3.oas.models.media.Schema schema)
      • listDiff

        protected String listDiff​(int deepness,
                                  String name,
                                  com.github.elibracha.model.ChangedList<?> listDiff)
      • listItem

        protected <T> String listItem​(int deepness,
                                      String name,
                                      List<T> list)
      • parameters

        protected String parameters​(com.github.elibracha.model.ChangedParameters changedParameters)
      • listParameter

        protected String listParameter​(String title,
                                       List<io.swagger.v3.oas.models.parameters.Parameter> parameters)
      • itemParameter

        protected String itemParameter​(String title,
                                       io.swagger.v3.oas.models.parameters.Parameter parameter)
      • itemParameter

        protected String itemParameter​(com.github.elibracha.model.ChangedParameter param)
      • metadata

        protected String metadata​(String name,
                                  com.github.elibracha.model.ChangedMetadata changedMetadata)
      • metadata

        protected String metadata​(String beginning,
                                  String name,
                                  com.github.elibracha.model.ChangedMetadata changedMetadata)
      • blockquote

        protected String blockquote​(String beginning)
      • type

        protected String type​(io.swagger.v3.oas.models.media.Schema schema)
      • indent

        protected String indent​(int deepness)
      • resolve

        protected io.swagger.v3.oas.models.media.Schema resolve​(io.swagger.v3.oas.models.media.Schema schema)