Skip to content

Commit

Permalink
Add endpoind field to linked_spaces, rename url field to website (#92)
Browse files Browse the repository at this point in the history
* Add endpoind field to linked_spaces, make url field optional

* Rename url to website in linked_spaces

* Add anyOf required for endpoint and website

* Fix anyOf definition

---------

Co-authored-by: Raphael Nestler <[email protected]>
  • Loading branch information
renzenicolai and rnestler authored May 7, 2024
1 parent f501edb commit 359b3a2
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions 15-draft.json
Original file line number Diff line number Diff line change
Expand Up @@ -1475,13 +1475,26 @@
"items": {
"type": "object",
"properties": {
"url": {
"description": "The space's website according to their SpaceAPI endpoint",
"endpoint": {
"description": "The SpaceAPI endpoint of the space",
"type": "string"
},
"website": {
"description": "The website of the space",
"type": "string"
}
},
"required": [
"url"
"anyOf": [
{
"required": [
"endpoint"
]
},
{
"required": [
"website"
]
}
]
}
}
Expand Down

0 comments on commit 359b3a2

Please sign in to comment.