|
|
|
@ -89,3 +89,12 @@ For completeness, the changes to the auth rules can be represented as follows:
|
|
|
|
|
|
|
|
|
|
The remaining rules are the same as in `room version 3 <v3.html#authorization-rules-for-events>`_
|
|
|
|
|
(the last inherited room version to specify the authorization rules).
|
|
|
|
|
|
|
|
|
|
Canonical JSON
|
|
|
|
|
~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
Servers MUST strictly enforce the JSON format specified in the
|
|
|
|
|
`appendices <../appendices.html#canonical-json>`_. This translates to a 400 ``M_BAD_JSON`` error
|
|
|
|
|
on most endpoints, or discarding of events over federation. For example, the federation API's
|
|
|
|
|
``/send`` endpoint would discard the event whereas the Client Server API's ``/send/{eventType}``
|
|
|
|
|
endpoint would return a ``M_BAD_JSON`` error.
|
|
|
|
|