mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-15 18:43:43 +01:00
Merge pull request #1975 from matrix-org/rav/thumbnail_dimensions
Make thumbnail dimensions mandatory
This commit is contained in:
commit
de3eb3218e
|
|
@ -202,6 +202,7 @@ paths:
|
||||||
type: integer
|
type: integer
|
||||||
x-example: 64
|
x-example: 64
|
||||||
name: width
|
name: width
|
||||||
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The *desired* width of the thumbnail. The actual thumbnail may not
|
The *desired* width of the thumbnail. The actual thumbnail may not
|
||||||
match the size specified.
|
match the size specified.
|
||||||
|
|
@ -209,6 +210,7 @@ paths:
|
||||||
type: integer
|
type: integer
|
||||||
x-example: 64
|
x-example: 64
|
||||||
name: height
|
name: height
|
||||||
|
required: true
|
||||||
description: |-
|
description: |-
|
||||||
The *desired* height of the thumbnail. The actual thumbnail may not
|
The *desired* height of the thumbnail. The actual thumbnail may not
|
||||||
match the size specified.
|
match the size specified.
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Clarify that ``width`` and ``height`` are required parameters on ``/_matrix/media/r0/thumbnail/{serverName}/{mediaId}``. It is somewhat meaningless to request a thumbnail without specifying a desired size, and Synapse has never permitted such requests.
|
||||||
Loading…
Reference in a new issue