public class SwaggerConverter extends Object implements SwaggerParserExtension
| Constructor and Description |
|---|
SwaggerConverter() |
| Modifier and Type | Method and Description |
|---|---|
io.swagger.v3.oas.models.info.Contact |
convert(io.swagger.models.Contact v2Contact) |
io.swagger.v3.oas.models.info.Info |
convert(io.swagger.models.Info v2Info) |
List<io.swagger.models.auth.AuthorizationValue> |
convert(List<AuthorizationValue> auths) |
io.swagger.v3.oas.models.media.Schema |
convert(io.swagger.models.Model v2Model) |
io.swagger.v3.oas.models.Operation |
convert(io.swagger.models.Operation v2Operation) |
io.swagger.v3.oas.models.parameters.Parameter |
convert(io.swagger.models.parameters.Parameter v2Parameter) |
io.swagger.v3.oas.models.PathItem |
convert(io.swagger.models.Path v2Path) |
io.swagger.v3.oas.models.responses.ApiResponse |
convert(io.swagger.models.Response response) |
io.swagger.v3.oas.models.responses.ApiResponse |
convert(io.swagger.models.Response v2Response,
List<String> produces) |
SwaggerParseResult |
convert(io.swagger.parser.util.SwaggerDeserializationResult parse) |
SwaggerParseResult |
readContents(String swaggerAsString,
List<AuthorizationValue> auth,
ParseOptions options) |
SwaggerParseResult |
readLocation(String url,
List<AuthorizationValue> auths,
ParseOptions options) |
public SwaggerParseResult readLocation(String url, List<AuthorizationValue> auths, ParseOptions options)
readLocation in interface SwaggerParserExtensionpublic SwaggerParseResult readContents(String swaggerAsString, List<AuthorizationValue> auth, ParseOptions options)
readContents in interface SwaggerParserExtensionpublic List<io.swagger.models.auth.AuthorizationValue> convert(List<AuthorizationValue> auths)
public SwaggerParseResult convert(io.swagger.parser.util.SwaggerDeserializationResult parse)
public io.swagger.v3.oas.models.info.Info convert(io.swagger.models.Info v2Info)
public io.swagger.v3.oas.models.info.Contact convert(io.swagger.models.Contact v2Contact)
public io.swagger.v3.oas.models.PathItem convert(io.swagger.models.Path v2Path)
public io.swagger.v3.oas.models.Operation convert(io.swagger.models.Operation v2Operation)
public io.swagger.v3.oas.models.responses.ApiResponse convert(io.swagger.models.Response response)
public io.swagger.v3.oas.models.responses.ApiResponse convert(io.swagger.models.Response v2Response,
List<String> produces)
public io.swagger.v3.oas.models.parameters.Parameter convert(io.swagger.models.parameters.Parameter v2Parameter)
public io.swagger.v3.oas.models.media.Schema convert(io.swagger.models.Model v2Model)
Copyright © 2020. All rights reserved.