Skip to content

Commit

Permalink
Updated fake node validator
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed Jul 1, 2024
1 parent aefcb20 commit c9d0cf4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions internal/config/validators/fakedata_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ func TestFakedataNodeValidator(t *testing.T) {
},
err: "property 'properties' is not allowed for array nodes",
},
{
name: "object validate internal properties",
value: &fakedata.Node{
Type: "object",
Properties: map[string]fakedata.Node{
"key": {Type: "unknown"},
},
},
err: "'unknown' is not a valid option",
},
}
for _, testCase := range tests {
t.Run(testCase.name, func(t *testing.T) {
Expand Down

0 comments on commit c9d0cf4

Please sign in to comment.