Skip to content

Commit ba2e205

Browse files
committed
fix format validation
1 parent 87f790b commit ba2e205

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ GIT
88
PATH
99
remote: .
1010
specs:
11-
json_schema_form (0.15.24)
11+
json_schema_form (0.15.25)
1212
activesupport (~> 6)
1313
dry-schema (~> 1.13)
1414
json_schemer (= 2.1.1)

lib/jsf/forms/form.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def errors(**passthru)
272272

273273
# ensure property $id key matches with field id
274274
if run_validation?(passthru, :match_key)
275-
if field['$id'] != "#/properties/#{k}"
275+
if field['$id'] && field['$id'] != "#/properties/#{k}"
276276
add_error_on_path(
277277
errors_hash,
278278
['properties', k, '$id'],

lib/jsf/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module JSF
2-
VERSION = "0.15.24"
2+
VERSION = "0.15.25"
33
end

0 commit comments

Comments
 (0)