| Modifier and Type | Field and Description |
|---|---|
protected String |
BLOCKQUOTE |
protected String |
CODE |
protected com.github.elibracha.model.ChangedOpenApi |
diff |
protected String |
H3 |
protected String |
H4 |
protected String |
H5 |
protected String |
H6 |
protected String |
HR |
protected String |
LI |
static org.slf4j.Logger |
LOGGER |
protected String |
PRE_CODE |
protected String |
PRE_LI |
protected static com.github.elibracha.utils.RefPointer<io.swagger.v3.oas.models.media.Schema> |
refPointer |
protected boolean |
showChangedMetadata
A paramater which indicates whether or not metadata (summary and metadata) changes should be
logged in the changelog file.
|
| Constructor and Description |
|---|
MarkdownRender() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
blockquote(String beginning) |
protected String |
blockquote(String beginning,
String text) |
protected String |
bodyContent(com.github.elibracha.model.ChangedContent changedContent) |
protected String |
bodyContent(String prefix,
com.github.elibracha.model.ChangedContent changedContent) |
protected String |
code(String string) |
protected String |
headers(com.github.elibracha.model.ChangedHeaders headers) |
protected String |
indent(int deepness) |
protected String |
itemContent(int deepness,
String mediaType,
com.github.elibracha.model.ChangedMediaType content) |
protected String |
itemContent(String title,
String mediaType) |
protected String |
itemContent(String title,
String mediaType,
io.swagger.v3.oas.models.media.MediaType content) |
protected String |
itemEndpoint(String method,
String path,
com.github.elibracha.model.ChangedMetadata summary) |
protected String |
itemEndpoint(String method,
String path,
String summary) |
protected String |
itemHeader(String code,
com.github.elibracha.model.ChangedHeader header) |
protected String |
itemHeader(String title,
String name,
io.swagger.v3.oas.models.headers.Header header) |
protected String |
itemHeader(String title,
String mediaType,
String description) |
protected String |
itemParameter(com.github.elibracha.model.ChangedParameter param) |
protected String |
itemParameter(String title,
io.swagger.v3.oas.models.parameters.Parameter parameter) |
protected String |
itemParameter(String title,
String name,
String in,
String description) |
protected String |
itemResponse(String code,
com.github.elibracha.model.ChangedResponse response) |
protected String |
itemResponse(String title,
String code,
io.swagger.v3.oas.models.responses.ApiResponse response) |
protected String |
itemResponse(String title,
String code,
String description) |
protected String |
items(int deepness,
com.github.elibracha.model.ChangedSchema schema) |
protected String |
items(int deepness,
io.swagger.v3.oas.models.media.Schema schema,
com.github.elibracha.model.DiffContext context) |
protected String |
items(int deepness,
String title,
String type,
String description) |
protected String |
listContent(String prefix,
String title,
Map<String,io.swagger.v3.oas.models.media.MediaType> mediaTypes) |
protected String |
listDiff(int deepness,
String name,
com.github.elibracha.model.ChangedList<?> listDiff) |
protected String |
listEndpoints(List<com.github.elibracha.model.ChangedOperation> changedOperations) |
protected String |
listEndpoints(String title,
List<com.github.elibracha.model.Endpoint> endpoints) |
protected String |
listHeader(String title,
Map<String,io.swagger.v3.oas.models.headers.Header> headers) |
protected <T> String |
listItem(int deepness,
String name,
List<T> list) |
protected String |
listParameter(String title,
List<io.swagger.v3.oas.models.parameters.Parameter> parameters) |
protected String |
listResponse(String title,
Map<String,io.swagger.v3.oas.models.responses.ApiResponse> responses) |
protected String |
metadata(String metadata) |
protected String |
metadata(String name,
com.github.elibracha.model.ChangedMetadata changedMetadata) |
protected String |
metadata(String beginning,
String metadata) |
protected String |
metadata(String beginning,
String name,
com.github.elibracha.model.ChangedMetadata changedMetadata) |
protected String |
metadata(String beginning,
String name,
String metadata) |
protected String |
oneOfSchema(int deepness,
com.github.elibracha.model.ChangedOneOfSchema schema,
String discriminator) |
protected String |
parameters(com.github.elibracha.model.ChangedParameters changedParameters) |
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) |
protected String |
property(int deepness,
String name,
com.github.elibracha.model.ChangedSchema schema) |
protected String |
property(int deepness,
String title,
String name,
io.swagger.v3.oas.models.media.Schema schema) |
protected String |
property(int deepness,
String title,
String name,
String type,
String description) |
String |
render(com.github.elibracha.model.ChangedOpenApi diff) |
protected String |
required(int deepness,
String title,
List<String> required) |
protected io.swagger.v3.oas.models.media.Schema |
resolve(io.swagger.v3.oas.models.media.Schema schema) |
protected String |
responses(com.github.elibracha.model.ChangedApiResponse changedApiResponse) |
protected String |
schema(com.github.elibracha.model.ChangedSchema schema) |
protected String |
schema(int deepness,
com.github.elibracha.model.ChangedSchema schema) |
protected String |
schema(int deepness,
io.swagger.v3.oas.models.media.ComposedSchema schema,
com.github.elibracha.model.DiffContext context) |
protected String |
schema(int deepness,
io.swagger.v3.oas.models.media.Schema schema,
com.github.elibracha.model.DiffContext context) |
protected String |
sectionTitle(String title) |
protected String |
titleH5(String title) |
protected String |
type(io.swagger.v3.oas.models.media.Schema schema) |
public static final org.slf4j.Logger LOGGER
protected static com.github.elibracha.utils.RefPointer<io.swagger.v3.oas.models.media.Schema> refPointer
protected final String H3
protected final String H4
protected final String H5
protected final String H6
protected final String BLOCKQUOTE
protected final String CODE
protected final String PRE_CODE
protected final String PRE_LI
protected final String LI
protected final String HR
protected com.github.elibracha.model.ChangedOpenApi diff
protected boolean showChangedMetadata
public String render(com.github.elibracha.model.ChangedOpenApi diff)
protected String listEndpoints(String title, List<com.github.elibracha.model.Endpoint> endpoints)
protected String itemEndpoint(String method, String path, com.github.elibracha.model.ChangedMetadata summary)
protected String listEndpoints(List<com.github.elibracha.model.ChangedOperation> changedOperations)
protected String responses(com.github.elibracha.model.ChangedApiResponse changedApiResponse)
protected String listResponse(String title, Map<String,io.swagger.v3.oas.models.responses.ApiResponse> responses)
protected String itemResponse(String title, String code, io.swagger.v3.oas.models.responses.ApiResponse response)
protected String itemResponse(String code, com.github.elibracha.model.ChangedResponse response)
protected String headers(com.github.elibracha.model.ChangedHeaders headers)
protected String listHeader(String title, Map<String,io.swagger.v3.oas.models.headers.Header> headers)
protected String itemHeader(String title, String name, io.swagger.v3.oas.models.headers.Header header)
protected String itemHeader(String code, com.github.elibracha.model.ChangedHeader header)
protected String bodyContent(String prefix, com.github.elibracha.model.ChangedContent changedContent)
protected String bodyContent(com.github.elibracha.model.ChangedContent changedContent)
protected String listContent(String prefix, String title, Map<String,io.swagger.v3.oas.models.media.MediaType> mediaTypes)
protected String itemContent(String title, String mediaType, io.swagger.v3.oas.models.media.MediaType content)
protected String itemContent(int deepness, String mediaType, com.github.elibracha.model.ChangedMediaType content)
protected String schema(com.github.elibracha.model.ChangedSchema schema)
protected String oneOfSchema(int deepness, com.github.elibracha.model.ChangedOneOfSchema schema, String discriminator)
protected String schema(int deepness, com.github.elibracha.model.ChangedSchema schema)
protected String schema(int deepness, io.swagger.v3.oas.models.media.ComposedSchema schema, com.github.elibracha.model.DiffContext context)
protected String schema(int deepness, io.swagger.v3.oas.models.media.Schema schema, com.github.elibracha.model.DiffContext context)
protected String items(int deepness, com.github.elibracha.model.ChangedSchema schema)
protected String items(int deepness, io.swagger.v3.oas.models.media.Schema schema, com.github.elibracha.model.DiffContext context)
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)
protected String property(int deepness, String name, com.github.elibracha.model.ChangedSchema schema)
protected String property(int deepness, String title, String name, io.swagger.v3.oas.models.media.Schema schema)
protected String property(int deepness, String title, String name, String type, String description)
protected String listDiff(int deepness, String name, com.github.elibracha.model.ChangedList<?> listDiff)
protected String parameters(com.github.elibracha.model.ChangedParameters changedParameters)
protected String listParameter(String title, List<io.swagger.v3.oas.models.parameters.Parameter> parameters)
protected String itemParameter(String title, io.swagger.v3.oas.models.parameters.Parameter parameter)
protected String itemParameter(String title, String name, String in, String description)
protected String itemParameter(com.github.elibracha.model.ChangedParameter param)
protected String metadata(String name, com.github.elibracha.model.ChangedMetadata changedMetadata)
protected String metadata(String beginning, String name, com.github.elibracha.model.ChangedMetadata changedMetadata)
protected String type(io.swagger.v3.oas.models.media.Schema schema)
protected String indent(int deepness)
protected io.swagger.v3.oas.models.media.Schema resolve(io.swagger.v3.oas.models.media.Schema schema)
Copyright © 2020. All rights reserved.