public final class JsonSchemaHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.node.ObjectNode |
createJsonSchema(String title,
com.fasterxml.jackson.databind.node.ObjectNode schema) |
static Optional<String> |
determineSchemaReference(io.apicurio.datamodels.openapi.models.OasSchema schema) |
static boolean |
isKnownFormat(String format) |
static String |
javaTypeFor(String type,
String format) |
static com.fasterxml.jackson.databind.node.ObjectNode |
newJsonObjectSchema() |
static com.fasterxml.jackson.databind.node.ObjectNode |
parseJsonSchema(String schema) |
static com.fasterxml.jackson.databind.node.ObjectNode |
resolvableNodeForSpecification(com.fasterxml.jackson.databind.node.ObjectNode json) |
static com.fasterxml.jackson.databind.node.ObjectNode |
resolveSchemaForReference(com.fasterxml.jackson.databind.node.ObjectNode json,
String title,
String reference) |
static com.fasterxml.jackson.databind.JsonNode |
sanitize(com.fasterxml.jackson.databind.JsonNode node) |
static String |
serializeJson(com.fasterxml.jackson.databind.JsonNode schemaNode) |
public static com.fasterxml.jackson.databind.node.ObjectNode createJsonSchema(String title, com.fasterxml.jackson.databind.node.ObjectNode schema)
public static Optional<String> determineSchemaReference(io.apicurio.datamodels.openapi.models.OasSchema schema)
public static com.fasterxml.jackson.databind.node.ObjectNode newJsonObjectSchema()
public static com.fasterxml.jackson.databind.node.ObjectNode parseJsonSchema(String schema)
public static com.fasterxml.jackson.databind.node.ObjectNode resolvableNodeForSpecification(com.fasterxml.jackson.databind.node.ObjectNode json)
public static com.fasterxml.jackson.databind.node.ObjectNode resolveSchemaForReference(com.fasterxml.jackson.databind.node.ObjectNode json,
String title,
String reference)
public static String serializeJson(com.fasterxml.jackson.databind.JsonNode schemaNode)
public static com.fasterxml.jackson.databind.JsonNode sanitize(com.fasterxml.jackson.databind.JsonNode node)
public static boolean isKnownFormat(String format)
Copyright © 2016–2021 Red Hat. All rights reserved.