Class JsonSchemaDiffLibrary
- java.lang.Object
-
- io.apicurio.registry.rules.compatibility.jsonschema.JsonSchemaDiffLibrary
-
public class JsonSchemaDiffLibrary extends Object
- Author:
- Jakub Senko 'jsenko@redhat.com'
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaDiffLibrary()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DiffContext
findDifferences(String original, String updated)
Find and analyze differences between two JSON schemas.static DiffContext
findDifferences(org.everit.json.schema.Schema originalSchema, org.everit.json.schema.Schema updatedSchema)
static Set<Difference>
getIncompatibleDifferences(String original, String updated)
static boolean
isCompatible(String original, String updated)
-
-
-
Method Detail
-
findDifferences
public static DiffContext findDifferences(String original, String updated)
Find and analyze differences between two JSON schemas.- Parameters:
original
- Original/Previous/First/Left JSON schema representationupdated
- Updated/Next/Second/Right JSON schema representation- Returns:
- an object to access the found differences: Original -> Updated
- Throws:
IllegalArgumentException
- if the input is not a valid representation of a JsonSchema
-
findDifferences
public static DiffContext findDifferences(org.everit.json.schema.Schema originalSchema, org.everit.json.schema.Schema updatedSchema)
-
getIncompatibleDifferences
public static Set<Difference> getIncompatibleDifferences(String original, String updated)
-
-