Interface CompatibilityChecker

    • Method Detail

      • testCompatibility

        default CompatibilityExecutionResult testCompatibility​(CompatibilityLevel compatibilityLevel,
                                                               List<ContentHandle> existingArtifacts,
                                                               ContentHandle proposedArtifact)
        Parameters:
        compatibilityLevel - MUST NOT be null
        existingArtifacts - MUST NOT be null and MUST NOT contain null elements, but may be empty if the rule is executed and the artifact does not exist (e.g. a global COMPATIBILITY rule with io.apicurio.registry.rules.RuleApplicationType#CREATE)
        proposedArtifact - MUST NOT be null
      • testCompatibility

        CompatibilityExecutionResult testCompatibility​(CompatibilityLevel compatibilityLevel,
                                                       List<String> existingArtifacts,
                                                       String proposedArtifact)
        Parameters:
        compatibilityLevel - MUST NOT be null
        existingArtifacts - MUST NOT be null and MUST NOT contain null elements, but may be empty if the rule is executed and the artifact does not exist (e.g. a global COMPATIBILITY rule with io.apicurio.registry.rules.RuleApplicationType#CREATE)
        proposedArtifact - MUST NOT be null