Package io.swagger.v3.parser
Class OpenAPIV3Parser
- java.lang.Object
-
- io.swagger.v3.parser.OpenAPIV3Parser
-
- All Implemented Interfaces:
SwaggerParserExtension
public class OpenAPIV3Parser extends Object implements SwaggerParserExtension
-
-
Field Summary
Fields Modifier and Type Field Description static String
DISABLE_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 String
getEncoding()
static List<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<SwaggerParserExtension>
getExtensions(ClassLoader cl)
SwaggerParseResult
parseJsonNode(String path, com.fasterxml.jackson.databind.JsonNode node)
SwaggerParseResult
parseJsonNode(String path, com.fasterxml.jackson.databind.JsonNode node, ParseOptions options)
io.swagger.v3.oas.models.OpenAPI
read(String location)
io.swagger.v3.oas.models.OpenAPI
read(String location, List<AuthorizationValue> auths, ParseOptions resolve)
SwaggerParseResult
readContents(String yaml)
SwaggerParseResult
readContents(String swaggerAsString, List<AuthorizationValue> auth, ParseOptions options)
SwaggerParseResult
readContents(String swaggerAsString, List<AuthorizationValue> auth, ParseOptions options, String location)
SwaggerParseResult
readLocation(String url, List<AuthorizationValue> auth, ParseOptions options)
SwaggerParseResult
readWithInfo(String path, com.fasterxml.jackson.databind.JsonNode node)
Deprecated.SwaggerParseResult
readWithInfo(String location, List<AuthorizationValue> auths)
Deprecated.static void
setEncoding(String encoding)
protected List<AuthorizationValue>
transform(List<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<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<SwaggerParserExtension> getExtensions(ClassLoader cl)
-
getEncoding
public static String getEncoding()
-
setEncoding
public static void setEncoding(String encoding)
-
readLocation
public SwaggerParseResult readLocation(String url, List<AuthorizationValue> auth, ParseOptions options)
- Specified by:
readLocation
in interfaceSwaggerParserExtension
-
readContents
public SwaggerParseResult readContents(String swaggerAsString, List<AuthorizationValue> auth, ParseOptions options)
- Specified by:
readContents
in interfaceSwaggerParserExtension
-
read
public io.swagger.v3.oas.models.OpenAPI read(String location)
-
read
public io.swagger.v3.oas.models.OpenAPI read(String location, List<AuthorizationValue> auths, ParseOptions resolve)
-
readWithInfo
@Deprecated public SwaggerParseResult readWithInfo(String path, com.fasterxml.jackson.databind.JsonNode node)
Deprecated.
-
parseJsonNode
public SwaggerParseResult parseJsonNode(String path, com.fasterxml.jackson.databind.JsonNode node)
-
parseJsonNode
public SwaggerParseResult parseJsonNode(String path, com.fasterxml.jackson.databind.JsonNode node, ParseOptions options)
-
readContents
public SwaggerParseResult readContents(String yaml)
-
readContents
public SwaggerParseResult readContents(String swaggerAsString, List<AuthorizationValue> auth, ParseOptions options, String location)
-
readWithInfo
@Deprecated public SwaggerParseResult readWithInfo(String location, List<AuthorizationValue> auths)
Deprecated.
-
transform
@Deprecated protected List<AuthorizationValue> transform(List<AuthorizationValue> input)
Deprecated.Transform the swagger-model version of AuthorizationValue into a parser-specific one, to avoid dependencies across extensions- Parameters:
input
-- Returns:
-
-