@Immutable public final class JsonSchemaInferrer extends Object
newBuilder(),
inferForSample(JsonNode),
inferForSamples(Collection)| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
inferForSample(com.fasterxml.jackson.databind.JsonNode sample)
Infer the JSON schema from a sample JSON.
|
com.fasterxml.jackson.databind.node.ObjectNode |
inferForSamples(Collection<? extends com.fasterxml.jackson.databind.JsonNode> samples)
Infer the JSON schema from multiple sample JSONs.
|
static JsonSchemaInferrerBuilder |
newBuilder() |
@Nonnull public static JsonSchemaInferrerBuilder newBuilder()
JsonSchemaInferrerBuilder with default options.@Nonnull public com.fasterxml.jackson.databind.node.ObjectNode inferForSample(@Nullable com.fasterxml.jackson.databind.JsonNode sample)
sample - the sample JSON@Nonnull public com.fasterxml.jackson.databind.node.ObjectNode inferForSamples(@Nonnull Collection<? extends com.fasterxml.jackson.databind.JsonNode> samples)
samples - the sample JSONsCopyright © 2019–2022. All rights reserved.