public static class Swagger2MarkupConverter.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Swagger2MarkupConverter |
build() |
Swagger2MarkupConverter.Builder |
preProcessSwagger(Consumer<io.swagger.models.Swagger> preProcessor)
Customize the Swagger data in any useful way
|
Swagger2MarkupConverter.Builder |
withDefinitionsOrderedBy(OrderBy definitionsOrderedBy)
Specifies if the definitions should be ordered by natural ordering or stay as-is.
|
Swagger2MarkupConverter.Builder |
withDescriptions(java.lang.String descriptionsFolderPath)
Include hand-written descriptions into the Paths and Definitions document
|
Swagger2MarkupConverter.Builder |
withExamples(java.lang.String examplesFolderPath)
Include examples into the Paths document
|
Swagger2MarkupConverter.Builder |
withMarkupLanguage(io.github.robwin.markup.builder.MarkupLanguage markupLanguage)
Specifies the markup language which should be used to generate the files
|
Swagger2MarkupConverter.Builder |
withOutputLanguage(Language language)
Specifies labels language of output files
|
Swagger2MarkupConverter.Builder |
withPathsGroupedBy(GroupBy pathsGroupedBy)
Specifies if the paths should be grouped by tags or stay as-is.
|
Swagger2MarkupConverter.Builder |
withSchemas(java.lang.String schemasFolderPath)
Include (JSON, XML) schemas into the Definitions document
|
Swagger2MarkupConverter.Builder |
withSeparatedDefinitions()
In addition to the definitions file, also create separate definition files for each model definition.
|
public Swagger2MarkupConverter build()
public Swagger2MarkupConverter.Builder withMarkupLanguage(io.github.robwin.markup.builder.MarkupLanguage markupLanguage)
markupLanguage - the markup language which is used to generate the filespublic Swagger2MarkupConverter.Builder withDescriptions(java.lang.String descriptionsFolderPath)
descriptionsFolderPath - the path to the folder where the description documents residepublic Swagger2MarkupConverter.Builder withSeparatedDefinitions()
public Swagger2MarkupConverter.Builder withExamples(java.lang.String examplesFolderPath)
examplesFolderPath - the path to the folder where the example documents residepublic Swagger2MarkupConverter.Builder withSchemas(java.lang.String schemasFolderPath)
schemasFolderPath - the path to the folder where the schema documents residepublic Swagger2MarkupConverter.Builder preProcessSwagger(Consumer<io.swagger.models.Swagger> preProcessor)
preProcessor - function object to mutate the swagger objectpublic Swagger2MarkupConverter.Builder withPathsGroupedBy(GroupBy pathsGroupedBy)
pathsGroupedBy - the GroupBy enumpublic Swagger2MarkupConverter.Builder withDefinitionsOrderedBy(OrderBy definitionsOrderedBy)
definitionsOrderedBy - the OrderBy enumpublic Swagger2MarkupConverter.Builder withOutputLanguage(Language language)
language - the enum