Skip to content

Commit

Permalink
fix format validation
Browse files Browse the repository at this point in the history
  • Loading branch information
patodevilla committed Mar 8, 2024
1 parent 87f790b commit ba2e205
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GIT
PATH
remote: .
specs:
json_schema_form (0.15.24)
json_schema_form (0.15.25)
activesupport (~> 6)
dry-schema (~> 1.13)
json_schemer (= 2.1.1)
Expand Down
2 changes: 1 addition & 1 deletion lib/jsf/forms/form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def errors(**passthru)

# ensure property $id key matches with field id
if run_validation?(passthru, :match_key)
if field['$id'] != "#/properties/#{k}"
if field['$id'] && field['$id'] != "#/properties/#{k}"
add_error_on_path(
errors_hash,
['properties', k, '$id'],
Expand Down
2 changes: 1 addition & 1 deletion lib/jsf/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module JSF
VERSION = "0.15.24"
VERSION = "0.15.25"
end

0 comments on commit ba2e205

Please sign in to comment.