Skip to content

Commit

Permalink
"propertyNames" test: Cover case of {"propertyNames": false}.
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Feb 1, 2023
1 parent 419316b commit fac9e86
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/draft6_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,16 @@ def test_property_names

data = {"bar" => "value"}
refute_valid schema, data

schema = {
"type" => "object",
"propertyNames" => false
}

data = {}
assert_valid schema, data

data = {"foo" => "value"}
refute_valid schema, data
end
end

0 comments on commit fac9e86

Please sign in to comment.