Package com.github.elibracha.output
Class MarkdownRender
- java.lang.Object
-
- com.github.elibracha.output.MarkdownRender
-
-
Field Summary
Fields Modifier and Type Field Description protected StringBLOCKQUOTEprotected StringCODEprotected com.github.elibracha.model.ChangedOpenApidiffprotected StringH3protected StringH4protected StringH5protected StringH6protected StringHRprotected StringLIstatic org.slf4j.LoggerLOGGERprotected StringPRE_CODEprotected StringPRE_LIprotected static com.github.elibracha.utils.RefPointer<io.swagger.v3.oas.models.media.Schema>refPointerprotected booleanshowChangedMetadataA paramater which indicates whether or not metadata (summary and metadata) changes should be logged in the changelog file.
-
Constructor Summary
Constructors Constructor Description MarkdownRender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringblockquote(String beginning)protected Stringblockquote(String beginning, String text)protected StringbodyContent(com.github.elibracha.model.ChangedContent changedContent)protected StringbodyContent(String prefix, com.github.elibracha.model.ChangedContent changedContent)protected Stringcode(String string)protected Stringheaders(com.github.elibracha.model.ChangedHeaders headers)protected Stringindent(int deepness)protected StringitemContent(int deepness, String mediaType, com.github.elibracha.model.ChangedMediaType content)protected StringitemContent(String title, String mediaType)protected StringitemContent(String title, String mediaType, io.swagger.v3.oas.models.media.MediaType content)protected StringitemEndpoint(String method, String path, com.github.elibracha.model.ChangedMetadata summary)protected StringitemEndpoint(String method, String path, String summary)protected StringitemHeader(String code, com.github.elibracha.model.ChangedHeader header)protected StringitemHeader(String title, String name, io.swagger.v3.oas.models.headers.Header header)protected StringitemHeader(String title, String mediaType, String description)protected StringitemParameter(com.github.elibracha.model.ChangedParameter param)protected StringitemParameter(String title, io.swagger.v3.oas.models.parameters.Parameter parameter)protected StringitemParameter(String title, String name, String in, String description)protected StringitemResponse(String code, com.github.elibracha.model.ChangedResponse response)protected StringitemResponse(String title, String code, io.swagger.v3.oas.models.responses.ApiResponse response)protected StringitemResponse(String title, String code, String description)protected Stringitems(int deepness, com.github.elibracha.model.ChangedSchema schema)protected Stringitems(int deepness, io.swagger.v3.oas.models.media.Schema schema, com.github.elibracha.model.DiffContext context)protected Stringitems(int deepness, String title, String type, String description)protected StringlistContent(String prefix, String title, Map<String,io.swagger.v3.oas.models.media.MediaType> mediaTypes)protected StringlistDiff(int deepness, String name, com.github.elibracha.model.ChangedList<?> listDiff)protected StringlistEndpoints(String title, List<com.github.elibracha.model.Endpoint> endpoints)protected StringlistEndpoints(List<com.github.elibracha.model.ChangedOperation> changedOperations)protected StringlistHeader(String title, Map<String,io.swagger.v3.oas.models.headers.Header> headers)protected <T> StringlistItem(int deepness, String name, List<T> list)protected StringlistParameter(String title, List<io.swagger.v3.oas.models.parameters.Parameter> parameters)protected StringlistResponse(String title, Map<String,io.swagger.v3.oas.models.responses.ApiResponse> responses)protected Stringmetadata(String metadata)protected Stringmetadata(String name, com.github.elibracha.model.ChangedMetadata changedMetadata)protected Stringmetadata(String beginning, String metadata)protected Stringmetadata(String beginning, String name, com.github.elibracha.model.ChangedMetadata changedMetadata)protected Stringmetadata(String beginning, String name, String metadata)protected StringoneOfSchema(int deepness, com.github.elibracha.model.ChangedOneOfSchema schema, String discriminator)protected Stringparameters(com.github.elibracha.model.ChangedParameters changedParameters)protected Stringproperties(int deepness, String title, Map<String,io.swagger.v3.oas.models.media.Schema> properties, boolean showContent, com.github.elibracha.model.DiffContext context)protected Stringproperty(int deepness, String name, com.github.elibracha.model.ChangedSchema schema)protected Stringproperty(int deepness, String title, String name, io.swagger.v3.oas.models.media.Schema schema)protected Stringproperty(int deepness, String title, String name, String type, String description)Stringrender(com.github.elibracha.model.ChangedOpenApi diff)protected Stringrequired(int deepness, String title, List<String> required)protected io.swagger.v3.oas.models.media.Schemaresolve(io.swagger.v3.oas.models.media.Schema schema)protected Stringresponses(com.github.elibracha.model.ChangedApiResponse changedApiResponse)protected Stringschema(int deepness, com.github.elibracha.model.ChangedSchema schema)protected Stringschema(int deepness, io.swagger.v3.oas.models.media.ComposedSchema schema, com.github.elibracha.model.DiffContext context)protected Stringschema(int deepness, io.swagger.v3.oas.models.media.Schema schema, com.github.elibracha.model.DiffContext context)protected Stringschema(com.github.elibracha.model.ChangedSchema schema)protected StringsectionTitle(String title)protected StringtitleH5(String title)protected Stringtype(io.swagger.v3.oas.models.media.Schema schema)
-
-
-
Field Detail
-
LOGGER
public static final org.slf4j.Logger LOGGER
-
refPointer
protected static com.github.elibracha.utils.RefPointer<io.swagger.v3.oas.models.media.Schema> refPointer
-
H3
protected final String H3
- See Also:
- Constant Field Values
-
H4
protected final String H4
- See Also:
- Constant Field Values
-
H5
protected final String H5
- See Also:
- Constant Field Values
-
H6
protected final String H6
- See Also:
- Constant Field Values
-
BLOCKQUOTE
protected final String BLOCKQUOTE
- See Also:
- Constant Field Values
-
CODE
protected final String CODE
- See Also:
- Constant Field Values
-
PRE_CODE
protected final String PRE_CODE
- See Also:
- Constant Field Values
-
PRE_LI
protected final String PRE_LI
- See Also:
- Constant Field Values
-
LI
protected final String LI
- See Also:
- Constant Field Values
-
HR
protected final String HR
- See Also:
- Constant Field Values
-
diff
protected com.github.elibracha.model.ChangedOpenApi diff
-
showChangedMetadata
protected boolean showChangedMetadata
A paramater which indicates whether or not metadata (summary and metadata) changes should be logged in the changelog file.
-
-
Method Detail
-
render
public String render(com.github.elibracha.model.ChangedOpenApi diff)
-
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)
-
property
protected String property(int deepness, String title, String name, String type, String description)
-
listDiff
protected String listDiff(int deepness, String name, com.github.elibracha.model.ChangedList<?> listDiff)
-
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(String title, String name, String in, String description)
-
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)
-
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)
-
-