Package | Description |
---|---|
io.apicurio.registry.rules.compatibility.jsonschema | |
io.apicurio.registry.rules.compatibility.jsonschema.diff |
Modifier and Type | Method and Description |
---|---|
static DiffContext |
JsonSchemaDiffLibrary.findDifferences(org.everit.json.schema.Schema originalSchema,
org.everit.json.schema.Schema updatedSchema) |
static DiffContext |
JsonSchemaDiffLibrary.findDifferences(String original,
String updated)
Find and analyze differences between two JSON schemas.
|
Modifier and Type | Method and Description |
---|---|
static DiffContext |
DiffContext.createRootContext() |
static DiffContext |
DiffContext.createRootContext(String basePathFragmentUpdated) |
DiffContext |
DiffContext.sub(String pathFragmentUpdated) |
Modifier and Type | Method and Description |
---|---|
static void |
DiffUtil.compareSchema(DiffContext ctx,
org.everit.json.schema.Schema original,
org.everit.json.schema.Schema updated,
DiffType addedType,
DiffType removedType,
DiffType bothType,
DiffType backwardNotForwardType,
DiffType forwardNotBackwardType,
DiffType none) |
static boolean |
DiffUtil.diffAddedRemoved(DiffContext ctx,
Object original,
Object updated,
DiffType addedType,
DiffType removedType)
added/removed
|
static void |
DiffUtil.diffBooleanTransition(DiffContext ctx,
Boolean original,
Boolean updated,
Boolean defaultValue,
DiffType changeFalseToTrue,
DiffType changeTrueToFalse,
DiffType unchanged) |
static boolean |
DiffUtil.diffInteger(DiffContext ctx,
Integer original,
Integer updated,
DiffType addedType,
DiffType removedType,
DiffType increasedType,
DiffType decreasedType)
added/removed/increased/decreased
|
static boolean |
DiffUtil.diffNumber(DiffContext ctx,
Number original,
Number updated,
DiffType addedType,
DiffType removedType,
DiffType increasedType,
DiffType decreasedType)
added/removed/increased/decreased
|
static void |
DiffUtil.diffNumberOriginalMultipleOfUpdated(DiffContext ctx,
Number original,
Number updated,
DiffType multipleOfType,
DiffType notMultipleOfType) |
static void |
DiffUtil.diffObject(DiffContext ctx,
Object original,
Object updated,
DiffType addedType,
DiffType removedType,
DiffType changedType)
added/removed/changed (using equals)
|
static void |
DiffUtil.diffObjectDefault(DiffContext ctx,
Object original,
Object updated,
Object defaultValue,
DiffType addedType,
DiffType removedType,
DiffType changedType)
added/removed/changed (using equals), with a default value specified
|
static boolean |
DiffUtil.diffObjectIdentity(DiffContext ctx,
Object original,
Object updated,
DiffType addedType,
DiffType removedType,
DiffType changedType)
added/removed/changed (using ==)
|
static <T> void |
DiffUtil.diffSetChanged(DiffContext ctx,
Set<T> original,
Set<T> updated,
DiffType addedType,
DiffType removedType,
DiffType changedType,
DiffType addedMemberType,
DiffType removedMemberType) |
static boolean |
DiffUtil.diffSubschemaAddedRemoved(DiffContext ctx,
Object original,
Object updated,
DiffType addedType,
DiffType removedType) |
static <T> T |
DiffUtil.getExceptionally(DiffContext ctx,
Supplier<T> getter)
Use getter and return null if there is an exception.
|
Constructor and Description |
---|
ArraySchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.ArraySchema original) |
BooleanSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.BooleanSchema original) |
CombinedSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.CombinedSchema original) |
ConditionalSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.ConditionalSchema original) |
ConstSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.ConstSchema original) |
EnumSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.EnumSchema original) |
NotSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.NotSchema original) |
NullSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.NullSchema original) |
NumberSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.NumberSchema original) |
ObjectSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.ObjectSchema original) |
PrimitiveSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.Schema original)
This visitor accepts any schema, so the checks
that would be otherwise done by the caller,
are made by this visitor.
|
ReferenceSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.Schema original) |
SchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.Schema original) |
StringSchemaDiffVisitor(DiffContext ctx,
org.everit.json.schema.StringSchema original) |
Copyright © 2020 Red Hat. All rights reserved.