lib/jsi/schema/validation/property_names.rb in jsi-0.6.0 vs lib/jsi/schema/validation/property_names.rb in jsi-0.7.0
- old
+ new
@@ -2,10 +2,10 @@
module JSI
module Schema::Validation::PropertyNames
# @private
def internal_validate_propertyNames(result_builder)
- if schema_content.key?('propertyNames')
+ if keyword?('propertyNames')
# The value of "propertyNames" MUST be a valid JSON Schema.
#
# If the instance is an object, this keyword validates if every property name in the instance
# validates against the provided schema. Note the property name that the schema is testing will
# always be a string.