Skip to content

Commit

Permalink
Ensure collections has at least one property (#45)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Nov 14, 2024
1 parent ac668c5 commit b4123dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions schemas/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"collections": {
"type": "object",
"minProperties": 1,
"additionalProperties": {
"type": "object",
"required": [
Expand Down
8 changes: 8 additions & 0 deletions test/schemas/configuration.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
{
"valid": false,
"data": {}
},
{
"valid": false,
"data": {
"url": "https://www.example.com",
"port": 8000,
"collections": {}
}
}
]
}

0 comments on commit b4123dd

Please sign in to comment.