public class OpenAPIV3Parser extends Object implements SwaggerParserExtension
Constructor and Description |
---|
OpenAPIV3Parser() |
Modifier and Type | Method and 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) |
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 |
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.
|
public static List<SwaggerParserExtension> getExtensions()
protected static List<SwaggerParserExtension> getExtensions(ClassLoader cl)
public static String getEncoding()
public static void setEncoding(String encoding)
public SwaggerParseResult readLocation(String url, List<AuthorizationValue> auth, ParseOptions options)
readLocation
in interface SwaggerParserExtension
public SwaggerParseResult readContents(String swaggerAsString, List<AuthorizationValue> auth, ParseOptions options)
readContents
in interface SwaggerParserExtension
public io.swagger.v3.oas.models.OpenAPI read(String location)
public io.swagger.v3.oas.models.OpenAPI read(String location, List<AuthorizationValue> auths, ParseOptions resolve)
@Deprecated public SwaggerParseResult readWithInfo(String path, com.fasterxml.jackson.databind.JsonNode node)
public SwaggerParseResult parseJsonNode(String path, com.fasterxml.jackson.databind.JsonNode node)
public SwaggerParseResult readContents(String yaml)
@Deprecated public SwaggerParseResult readWithInfo(String location, List<AuthorizationValue> auths)
@Deprecated protected List<AuthorizationValue> transform(List<AuthorizationValue> input)
input
- Copyright © 2020. All rights reserved.