Sha256: 6f111fc28a6ce9047507095f5c224ef5074862ee5cc5a65884ce9ded09de43f7
Contents?: true
Size: 636 Bytes
Versions: 20
Compression:
Stored size: 636 Bytes
Contents
# frozen_string_literal: true module JSI module Schema::Validation::Not # @private def internal_validate_not(result_builder) if keyword?('not') # This keyword's value MUST be a valid JSON Schema. # An instance is valid against this keyword if it fails to validate successfully against the schema # defined by this keyword. not_valid = result_builder.inplace_subschema_validate(['not']).valid? result_builder.validate( !not_valid, 'instance is valid against the schema specified as `not` value', keyword: 'not', ) end end end end
Version data entries
20 entries across 20 versions & 2 rubygems