Skip to content

Commit 6ad4e1b

Browse files
committed
Update schemas
1 parent 1e32ccd commit 6ad4e1b

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

schemas.go

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package spaceapivalidator
22

33
// CommitHash contains the hash of the commit the Validate function validates against
4-
var CommitHash = "e3a440a75b05a8b34dbb1255f0951431ad497e0f"
4+
var CommitHash = "19afba712e0b9e9ab8138d3b1fd55d3523898872"
55

66
// SpaceAPISchemas load from the repository as a map
77
var SpaceAPISchemas = map[string]string{
@@ -1437,8 +1437,11 @@ var SpaceAPISchemas = map[string]string{
14371437
"type": "object",
14381438
"properties": {
14391439
"open": {
1440-
"description": "A flag which indicates whether the space is currently open or closed. The state 'undefined' can be achieved by omitting this field. A missing 'open' property carries the semantics of a temporary unavailability of the state, whereas the absence of the 'state' property itself means the state is generally not implemented for this space.",
1441-
"type": "boolean"
1440+
"description": "A flag which indicates whether the space is currently open or closed. The state 'undefined' can be achieved by omitting this field. A missing 'open' property carries the semantics of a temporary unavailability of the state, whereas the absence of the 'state' property itself means the state is generally not implemented for this space. This field is also allowed to explicitly have the value null for backwards compatibility with older schema versions, but this is deprecated and will be removed in a future version.",
1441+
"type": [
1442+
"boolean",
1443+
"null"
1444+
]
14421445
},
14431446
"lastchange": {
14441447
"description": "The Unix timestamp when the space status changed most recently",
@@ -3716,6 +3719,22 @@ var SpaceAPISchemas = map[string]string{
37163719
"billing_interval"
37173720
]
37183721
}
3722+
},
3723+
"linked_spaces": {
3724+
"description": "A list of spaces you know and feel connected too.",
3725+
"type": "array",
3726+
"items": {
3727+
"type": "object",
3728+
"properties": {
3729+
"url": {
3730+
"description": "The space's website according to their SpaceAPI endpoint",
3731+
"type": "string"
3732+
}
3733+
},
3734+
"required": [
3735+
"url"
3736+
]
3737+
}
37193738
}
37203739
},
37213740
"required": [

0 commit comments

Comments
 (0)