mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +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
|
||||
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