lib/jsi/schema/validation/const.rb in jsi-0.6.0 vs lib/jsi/schema/validation/const.rb in jsi-0.7.0
- old
+ new
@@ -2,10 +2,10 @@
module JSI
module Schema::Validation::Const
# @private
def internal_validate_const(result_builder)
- if schema_content.key?('const')
+ if keyword?('const')
value = schema_content['const']
# The value of this keyword MAY be of any type, including null.
# An instance validates successfully against this keyword if its value is equal to the value of
# the keyword.
result_builder.validate(