Package io.swagger.v3.parser
Class OpenAPIV3Parser
- java.lang.Object
-
- io.swagger.v3.parser.OpenAPIV3Parser
-
- All Implemented Interfaces:
io.swagger.v3.parser.core.extensions.SwaggerParserExtension
public class OpenAPIV3Parser extends Object implements io.swagger.v3.parser.core.extensions.SwaggerParserExtension
-
-
Field Summary
Fields Modifier and Type Field Description static StringDISABLE_OAS31_RESOLVE
-
Constructor Summary
Constructors Constructor Description OpenAPIV3Parser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringgetEncoding()static List<io.swagger.v3.parser.core.extensions.SwaggerParserExtension>getExtensions()Locates extensions on the current thread class loader and then, if it differs from this class classloader (as in OSGi), locates extensions from this class classloader as well.protected static List<io.swagger.v3.parser.core.extensions.SwaggerParserExtension>getExtensions(ClassLoader cl)io.swagger.v3.parser.core.models.SwaggerParseResultparseJsonNode(String path, com.fasterxml.jackson.databind.JsonNode node)io.swagger.v3.parser.core.models.SwaggerParseResultparseJsonNode(String path, com.fasterxml.jackson.databind.JsonNode node, io.swagger.v3.parser.core.models.ParseOptions options)io.swagger.v3.oas.models.OpenAPIread(String location)io.swagger.v3.oas.models.OpenAPIread(String location, List<io.swagger.v3.parser.core.models.AuthorizationValue> auths, io.swagger.v3.parser.core.models.ParseOptions resolve)io.swagger.v3.parser.core.models.SwaggerParseResultreadContents(String yaml)io.swagger.v3.parser.core.models.SwaggerParseResultreadContents(String swaggerAsString, List<io.swagger.v3.parser.core.models.AuthorizationValue> auth, io.swagger.v3.parser.core.models.ParseOptions options)io.swagger.v3.parser.core.models.SwaggerParseResultreadContents(String swaggerAsString, List<io.swagger.v3.parser.core.models.AuthorizationValue> auth, io.swagger.v3.parser.core.models.ParseOptions options, String location)io.swagger.v3.parser.core.models.SwaggerParseResultreadLocation(String url, List<io.swagger.v3.parser.core.models.AuthorizationValue> auth, io.swagger.v3.parser.core.models.ParseOptions options)io.swagger.v3.parser.core.models.SwaggerParseResultreadWithInfo(String path, com.fasterxml.jackson.databind.JsonNode node)Deprecated.io.swagger.v3.parser.core.models.SwaggerParseResultreadWithInfo(String location, List<io.swagger.v3.parser.core.models.AuthorizationValue> auths)Deprecated.static voidsetEncoding(String encoding)protected List<io.swagger.v3.parser.core.models.AuthorizationValue>transform(List<io.swagger.v3.parser.core.models.AuthorizationValue> input)Deprecated.
-
-
-
Field Detail
-
DISABLE_OAS31_RESOLVE
public static final String DISABLE_OAS31_RESOLVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getExtensions
public static List<io.swagger.v3.parser.core.extensions.SwaggerParserExtension> getExtensions()
Locates extensions on the current thread class loader and then, if it differs from this class classloader (as in OSGi), locates extensions from this class classloader as well.- Returns:
- a list of extensions
-
getExtensions
protected static List<io.swagger.v3.parser.core.extensions.SwaggerParserExtension> getExtensions(ClassLoader cl)
-
getEncoding
public static String getEncoding()
-
setEncoding
public static void setEncoding(String encoding)
-
readLocation
public io.swagger.v3.parser.core.models.SwaggerParseResult readLocation(String url, List<io.swagger.v3.parser.core.models.AuthorizationValue> auth, io.swagger.v3.parser.core.models.ParseOptions options)
- Specified by:
readLocationin interfaceio.swagger.v3.parser.core.extensions.SwaggerParserExtension
-
readContents
public io.swagger.v3.parser.core.models.SwaggerParseResult readContents(String swaggerAsString, List<io.swagger.v3.parser.core.models.AuthorizationValue> auth, io.swagger.v3.parser.core.models.ParseOptions options)
- Specified by:
readContentsin interfaceio.swagger.v3.parser.core.extensions.SwaggerParserExtension
-
read
public io.swagger.v3.oas.models.OpenAPI read(String location)
-
read
public io.swagger.v3.oas.models.OpenAPI read(String location, List<io.swagger.v3.parser.core.models.AuthorizationValue> auths, io.swagger.v3.parser.core.models.ParseOptions resolve)
-
readWithInfo
@Deprecated public io.swagger.v3.parser.core.models.SwaggerParseResult readWithInfo(String path, com.fasterxml.jackson.databind.JsonNode node)
Deprecated.
-
parseJsonNode
public io.swagger.v3.parser.core.models.SwaggerParseResult parseJsonNode(String path, com.fasterxml.jackson.databind.JsonNode node)
-
parseJsonNode
public io.swagger.v3.parser.core.models.SwaggerParseResult parseJsonNode(String path, com.fasterxml.jackson.databind.JsonNode node, io.swagger.v3.parser.core.models.ParseOptions options)
-
readContents
public io.swagger.v3.parser.core.models.SwaggerParseResult readContents(String yaml)
-
readContents
public io.swagger.v3.parser.core.models.SwaggerParseResult readContents(String swaggerAsString, List<io.swagger.v3.parser.core.models.AuthorizationValue> auth, io.swagger.v3.parser.core.models.ParseOptions options, String location)
-
readWithInfo
@Deprecated public io.swagger.v3.parser.core.models.SwaggerParseResult readWithInfo(String location, List<io.swagger.v3.parser.core.models.AuthorizationValue> auths)
Deprecated.
-
transform
@Deprecated protected List<io.swagger.v3.parser.core.models.AuthorizationValue> transform(List<io.swagger.v3.parser.core.models.AuthorizationValue> input)
Deprecated.Transform the swagger-model version of AuthorizationValue into a parser-specific one, to avoid dependencies across extensions- Parameters:
input-- Returns:
-
-