Skip to content

Commit

Permalink
fix: spaces hierarchy paramater types
Browse files Browse the repository at this point in the history
- 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]>
  • Loading branch information
TheOneWithTheBraid committed May 30, 2022
1 parent 25a9dcf commit 11c207f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/api/client-server/space_hierarchy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ paths:
contents.
x-example: true
- in: query
type: number
type: integer
name: limit
description: |-
Optional limit for the maximum number of rooms to include per response. Must be an integer
Expand All @@ -67,7 +67,7 @@ paths:
Servers should apply a default value, and impose a maximum value to avoid resource exhaustion.
x-example: 20
- in: query
type: number
type: integer
name: max_depth
description: |-
Optional limit for how far to go into the space. Must be a non-negative integer.
Expand Down

0 comments on commit 11c207f

Please sign in to comment.