Class JsonSchemaDiffLibrary


  • public class JsonSchemaDiffLibrary
    extends Object
    Author:
    Jakub Senko 'jsenko@redhat.com'
    • Constructor Detail

      • JsonSchemaDiffLibrary

        public JsonSchemaDiffLibrary()
    • 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 representation
        updated - 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)
      • isCompatible

        public static boolean isCompatible​(String original,
                                           String updated)
      • getIncompatibleDifferences

        public static Set<Difference> getIncompatibleDifferences​(String original,
                                                                 String updated)