Travis Ralston
b96ee3e393
Merge pull request #1423 from turt2live/travis/s2s/keys
...
Improve the server key exchange portion of the s2s specification
7 years ago
Andrew Morgan
54a88eebf0
Merge pull request #1414 from matrix-org/anoa/third_party_cleanup
...
Clarification on third party fields
7 years ago
Travis Ralston
f5af4d2fb5
Merge pull request #1457 from matrix-org/dbkr/fix_room_tags
...
Fix room tags spec
7 years ago
user
5f8967c074
Move TODO. field1, field2... -> fields...
7 years ago
user
a2e2ced03b
Add reverse-lookup examples.
7 years ago
user
d785ac78a3
Remove explode and replace with TODO, require auth on CS
7 years ago
Andrew Morgan
53137a3c53
c/p bug, fix operationIds, move rst docs to md
7 years ago
Andrew Morgan
3e4962f211
Document standardized extensions to OpenAPI v2
7 years ago
Andrew Morgan
273acb277c
Change fields to use new extended query array syntax
7 years ago
Andrew Morgan
0ff882fb3b
Field definitions for protocol metadata
7 years ago
Kitsune Ral
346db48588
Revert giving get() a default
...
As per the PR review.
Signed-off-by: Alexey Rusakov <Alexey.Rusakov@pm.me>
7 years ago
Kitsune Ral
c6bfac41c5
Bypass jsonschema references resolver
...
jsonschema's resolver doesn't work with local files on Windows.
resolve_references only works with the local files (on Windows as well)
but that's exactly what's needed for the case (as long as we don't have
remote references, that is).
Signed-off-by: Alexey Rusakov <Alexey.Rusakov@pm.me>
7 years ago
Kitsune Ral
d17ec7f184
Check that path starts with file://, not file:///
...
Because file:/// is not a thing on Windows.
7 years ago
Kitsune Ral
2c9f00d37a
Follow PEP 8
7 years ago
Kitsune Ral
31687608dc
Factor out common code
7 years ago
Travis Ralston
73b0a03b9b
Remove more padding
7 years ago
David Baker
5ddf5374db
Missing comma
7 years ago
David Baker
e4fd088fcc
Fix room tags spec
7 years ago
Travis Ralston
cafd1a9ab3
Use more modern timestamps
7 years ago
Travis Ralston
e27f4a69a0
Key versions must be [0-9a-zA-Z_]
7 years ago
Travis Ralston
bdccfca726
Timestamps should be in milliseconds
7 years ago
Travis Ralston
cad1db2a14
Unpadded means unpadded
7 years ago
Travis Ralston
9dbb627d7b
Undo accidental changes to the operation ID
7 years ago
Travis Ralston
2f71703427
Deprecate key ID querying
7 years ago
Travis Ralston
8e97b0ca81
Improve the server key exchange portion of the s2s specification
...
Most of the text has been shuffled into the swagger definitions to bring it closer to where it matters.
This also attempts to clarify what is out in the wild. Most importantly, the first version of the key exchange is outright removed from the specification. Other research points/questions are:
* What is a "Key ID"?
* 1241156c82/synapse/rest/key/v2/local_key_resource.py (L81-L83)
* 1241156c82/synapse/rest/key/v2/local_key_resource.py (L88-L91)
* Returning a cached response if the server throws a 400, 500, or otherwise not-offline status code
* 1241156c82/synapse/rest/key/v2/remote_key_resource.py (L227-L229)
* `minimum_valid_until_ts` default
* This branch of the ladder: 1241156c82/synapse/rest/key/v2/remote_key_resource.py (L192)
* Returning empty arrays when querying offline/no servers
* Queried by hand against matrix.org as a notary server with a fake domain name to query
* Returning all keys even when querying for specific keys
* Queried by hand using matrix.org as a notary server against a server publishing multiple keys.
The examples and descriptions were also improved as part of this commit.
7 years ago
Travis Ralston
b0744aa1e9
Merge pull request #1413 from turt2live/travis/s2s/join-swagger
...
Convert joins/invites to swagger
7 years ago
Travis Ralston
af0629a520
Full stop
7 years ago
Travis Ralston
9f399a08fe
Full stops
...
I'm never going to remember these
7 years ago
Travis Ralston
0d1b82a601
Add the event_id to unsigned PDUs
...
This went missing in the swagger conversion. The example already has an event_id.
7 years ago
Travis Ralston
eaf175056f
Full stops
7 years ago
Travis Ralston
797aca87bd
Update the check_examples.py script to resolve references
...
The script previously wasn't chasing down valid references in examples.
7 years ago
Travis Ralston
7314405904
Update comment
7 years ago
Travis Ralston
45ec8269e6
Fill out the required fields in all the examples
7 years ago
Travis Ralston
9c1c541a38
Remove extra "required" declarations
...
"required" is something that is handled as an array, and these are invalid. The `type` in both cases is covered by a required array elsewhere
7 years ago
Travis Ralston
004998b98f
Convert invites to swagger
...
The whole section reads like a description for the endpoint, and has been replaced by the swagger definition now (rather than at a later stage). All the same information should be kept.
7 years ago
Travis Ralston
f09c4fd286
Convert joins to swagger
7 years ago
Travis Ralston
cb4fcd1d09
Merge remote-tracking branch 'matrix-org/master' into travis/s2s/transactions-swagger
7 years ago
Travis Ralston
88beaf4ad8
Completely remove /pull
...
It's not been in use for years - we can safely let it disappear
7 years ago
Travis Ralston
21c4af70a9
Fix schema definitions (spelling, attributes)
7 years ago
Travis Ralston
2aafde4549
Merge pull request #1419 from turt2live/travis/s2s/3pinvites-swagger
...
Convert third party invite exchange to swagger
7 years ago
Travis Ralston
89384c96c1
Full stops, language.
8 years ago
Travis Ralston
e226b60c7f
Merge remote-tracking branch 'matrix-org/master' into travis/s2s/transactions-swagger
8 years ago
Travis Ralston
bafdcf3640
Full stops, spelling, and operation IDs.
8 years ago
Travis Ralston
7cb918407d
Merge remote-tracking branch 'matrix-org/master' into travis/s2s/keys-swagger
8 years ago
Travis Ralston
05fb94e195
Merge remote-tracking branch 'matrix-org/master' into travis/better-errors
8 years ago
Travis Ralston
272f3d8432
Fix documentation link
8 years ago
Travis Ralston
cf93c88337
Convert third party invite exchange to swagger
8 years ago
Travis Ralston
d2b0b1bbda
Merge pull request #1379 from turt2live/travis/preset-guests
...
Document guest_access in /createRoom presets; Make presets a table
8 years ago
Travis Ralston
e5da1e1741
Improve upon the transaction schema and examples
...
Reduces data duplication and makes the objects more reusable for other areas of the spec
8 years ago
Travis Ralston
51faf8ed2e
Convert the general query API to swagger
...
Includes "moving" the directory query API into the same area. This will make more sense once the other query types are specified.
8 years ago