public class OpenApiParser extends Object
| Constructor and Description |
|---|
OpenApiParser(com.fasterxml.jackson.databind.JsonNode tree)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.microprofile.openapi.models.OpenAPI |
parse(InputStream stream,
Format format)
Parses the resource found at the given stream.
|
static org.eclipse.microprofile.openapi.models.OpenAPI |
parse(URL url)
Parses the resource found at the given URL.
|
static org.eclipse.microprofile.openapi.models.media.Schema |
parseSchema(String schemaJson)
Parses the schema in the provided String.
|
public OpenApiParser(com.fasterxml.jackson.databind.JsonNode tree)
tree - JsonNodepublic static final org.eclipse.microprofile.openapi.models.OpenAPI parse(URL url) throws IOException
OpenAPI.url - URL to OpenAPI documentIOException - URL parameter is not foundpublic static final org.eclipse.microprofile.openapi.models.OpenAPI parse(InputStream stream, Format format) throws IOException
stream - InputStream containing an OpenAPI documentformat - Format of the streamIOException - Errors in reading the streampublic static final org.eclipse.microprofile.openapi.models.media.Schema parseSchema(String schemaJson) throws IOException
schemaJson - String containing a JSON formatted schemaIOException - Errors in reading the StringCopyright © 2018–2021. All rights reserved.