Skip to content

Commit bf8a69e

Browse files
removing minLength restriction if the allowed amounts happen to be zero.
1 parent daf04b5 commit bf8a69e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

schemas/allowed-amounts/allowed-amounts.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@
225225
"items": {
226226
"$ref": "#/definitions/out_of_network"
227227
},
228-
"default": [],
229-
"minItems": 1
228+
"default": []
230229
}
231230
},
232231
"if": {

tests/spec/libs/allowed-amounts/allowed-amounts_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ def validate_with_errors(json_data)
116116
expect(schemer.valid?(invalid_data)).to be_falsey
117117
end
118118

119-
it "rejects empty out_of_network array" do
119+
it "allows for an empty out_of_network array" do
120120
invalid_data = valid_data.dup
121121
invalid_data["out_of_network"] = []
122-
expect(schemer.valid?(invalid_data)).to be_falsey
122+
expect(schemer.valid?(invalid_data)).to be_truthy
123123
end
124124

125125
it "rejects empty payments array" do

0 commit comments

Comments
 (0)