mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 04:54:10 +01:00
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 <the-one@with-the-braid.cf>
This commit is contained in:
parent
25a9dcfd3c
commit
9d07c9a014
|
|
@ -0,0 +1 @@
|
|||
Adjust the data types of the Spaces Hierarchy query parameters.
|
||||
|
|
@ -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
|
||||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue