Package io.swagger.v3.parser.converter
Class SwaggerConverter
- java.lang.Object
-
- io.swagger.v3.parser.converter.SwaggerConverter
-
- All Implemented Interfaces:
SwaggerParserExtension
public class SwaggerConverter extends Object implements SwaggerParserExtension
-
-
Constructor Summary
Constructors Constructor Description SwaggerConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.swagger.v3.oas.models.info.Contactconvert(io.swagger.models.Contact v2Contact)io.swagger.v3.oas.models.info.Infoconvert(io.swagger.models.Info v2Info)io.swagger.v3.oas.models.media.Schemaconvert(io.swagger.models.Model v2Model)io.swagger.v3.oas.models.Operationconvert(io.swagger.models.Operation v2Operation)io.swagger.v3.oas.models.parameters.Parameterconvert(io.swagger.models.parameters.Parameter v2Parameter)io.swagger.v3.oas.models.PathItemconvert(io.swagger.models.Path v2Path)io.swagger.v3.oas.models.responses.ApiResponseconvert(io.swagger.models.Response response)io.swagger.v3.oas.models.responses.ApiResponseconvert(io.swagger.models.Response v2Response, List<String> produces)SwaggerParseResultconvert(io.swagger.parser.util.SwaggerDeserializationResult parse)List<io.swagger.models.auth.AuthorizationValue>convert(List<AuthorizationValue> auths)SwaggerParseResultreadContents(String swaggerAsString, List<AuthorizationValue> auth, ParseOptions options)SwaggerParseResultreadLocation(String url, List<AuthorizationValue> auths, ParseOptions options)
-
-
-
Method Detail
-
readLocation
public SwaggerParseResult readLocation(String url, List<AuthorizationValue> auths, ParseOptions options)
- Specified by:
readLocationin interfaceSwaggerParserExtension
-
readContents
public SwaggerParseResult readContents(String swaggerAsString, List<AuthorizationValue> auth, ParseOptions options)
- Specified by:
readContentsin interfaceSwaggerParserExtension
-
convert
public List<io.swagger.models.auth.AuthorizationValue> convert(List<AuthorizationValue> auths)
-
convert
public SwaggerParseResult convert(io.swagger.parser.util.SwaggerDeserializationResult parse)
-
convert
public io.swagger.v3.oas.models.info.Info convert(io.swagger.models.Info v2Info)
-
convert
public io.swagger.v3.oas.models.info.Contact convert(io.swagger.models.Contact v2Contact)
-
convert
public io.swagger.v3.oas.models.PathItem convert(io.swagger.models.Path v2Path)
-
convert
public io.swagger.v3.oas.models.Operation convert(io.swagger.models.Operation v2Operation)
-
convert
public io.swagger.v3.oas.models.responses.ApiResponse convert(io.swagger.models.Response response)
-
convert
public io.swagger.v3.oas.models.responses.ApiResponse convert(io.swagger.models.Response v2Response, List<String> produces)
-
convert
public io.swagger.v3.oas.models.parameters.Parameter convert(io.swagger.models.parameters.Parameter v2Parameter)
-
convert
public io.swagger.v3.oas.models.media.Schema convert(io.swagger.models.Model v2Model)
-
-