mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-24 01:58:36 +01:00
do not use 'optional' in descriptions.
This commit is contained in:
parent
dfa4af5c19
commit
c84066df89
|
|
@ -100,3 +100,7 @@ When writing OpenAPI specifications for the API endpoints, follow these rules:
|
||||||
|
|
||||||
The description is also the place to define default values for optional
|
The description is also the place to define default values for optional
|
||||||
properties. Use the wording "Defaults to X [if unspecified]."
|
properties. Use the wording "Defaults to X [if unspecified]."
|
||||||
|
|
||||||
|
Some descriptions start with the workd "Optional" to explicitly mark optional
|
||||||
|
properties and parameters. This is redundant. Instead, use the ``required``
|
||||||
|
property to mark those that are required.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue