Skip to content

Commit

Permalink
Ensure either ownerId or ownerEmail is required nonetheless
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen committed Oct 24, 2024
1 parent 870bb4a commit 0400a9e
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions projects/uitdatabank/models/ownership-post.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,21 @@
"readOnly": true
}
},
"required": [
"itemId",
"itemType"
"oneOf": [
{
"required": [
"itemId",
"itemType",
"ownerId"
]
},
{
"required": [
"itemId",
"itemType",
"ownerEmail"
]
}
],
"examples": [
{
Expand Down

0 comments on commit 0400a9e

Please sign in to comment.