Skip to content

Commit 9d07c9a

Browse files
author
TheOneWithTheBraid
committed
fix: spaces hierarchy paramater types
- changed `limit` parameter type to integer - changed `query` parameter type to integer A floating number does not make any sense here. Also, at least Synapse does not allow floating point numbers in here. Signed-off-by: TheOneWithTheBraid <[email protected]>
1 parent 25a9dcf commit 9d07c9a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Adjust the data types of the Spaces Hierarchy query parameters.

data/api/client-server/space_hierarchy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ paths:
5858
contents.
5959
x-example: true
6060
- in: query
61-
type: number
61+
type: integer
6262
name: limit
6363
description: |-
6464
Optional limit for the maximum number of rooms to include per response. Must be an integer
@@ -67,7 +67,7 @@ paths:
6767
Servers should apply a default value, and impose a maximum value to avoid resource exhaustion.
6868
x-example: 20
6969
- in: query
70-
type: number
70+
type: integer
7171
name: max_depth
7272
description: |-
7373
Optional limit for how far to go into the space. Must be a non-negative integer.

0 commit comments

Comments
 (0)