Skip to content

Commit

Permalink
Merge pull request #410 from cultuurnet/feature/PPF-632-ownership-email
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen authored Oct 31, 2024
2 parents 950ca55 + bca2163 commit e5a840e
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions ownership-post.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,41 @@
"minLength": 1,
"pattern": "\\S",
"readOnly": true
},
"ownerEmail": {
"type": "string",
"description": "The email of the owner",
"format": "email",
"example": "[email protected]",
"readOnly": true
}
},
"required": [
"itemId",
"itemType",
"ownerId"
"oneOf": [
{
"required": [
"itemId",
"itemType",
"ownerId"
]
},
{
"required": [
"itemId",
"itemType",
"ownerEmail"
]
}
],
"examples": [
{
"itemId": "e1a58cbd-cd4b-4295-bea0-baf123c77fd4",
"itemType": "organizer",
"ownerId": "7a583ed3-cbc1-481d-93b1-d80fff0174dd"
},
{
"itemId": "e1a58cbd-cd4b-4295-bea0-baf123c77fd4",
"itemType": "organizer",
"ownerEmail": "[email protected]"
}
]
}
}

0 comments on commit e5a840e

Please sign in to comment.