Travis Ralston
d914c402e2
Improve the profile query to have more sane responses
...
This is a mix of Synapse and Dendrite behaviour, mostly Dendrite. Synapse returns `null` for field values that aren't set, however Dendrite just doesn't return them and instead opts for an empty object.
Further, synapse is lacking in error codes in this area. Dendrite does some additional validation on this API which introduces more errors for bad requests, instead of defaulting to empty objects/200 OK responses.
Likewise, Dendrite returns a 404 when the user is not found while Synapse returns 200 OK/empty object.
6 years ago
Travis Ralston
0ddf578b61
Combine all queries into their own section
...
This removes the Directory and Profile sections, instead opting to document them as Queries.
The behaviour of profile queries is based on Synapse's behaviour. A few issues have been opened to improve the behaviour:
* https://github.com/matrix-org/matrix-doc/issues/1434
* https://github.com/matrix-org/matrix-doc/issues/1435
* https://github.com/matrix-org/matrix-doc/issues/1436
* https://github.com/matrix-org/matrix-doc/issues/1437
This fixes https://github.com/matrix-org/matrix-doc/issues/1404
6 years ago
Travis Ralston
b0744aa1e9
Merge pull request #1413 from turt2live/travis/s2s/join-swagger
...
Convert joins/invites to swagger
6 years ago
Travis Ralston
af0629a520
Full stop
6 years ago
Travis Ralston
6368b03280
Merge pull request #1449 from turt2live/travis/down-with-travis
...
Remove Travis CI configuration
6 years ago
Richard van der Hoff
17811bca27
Merge pull request #1448 from turt2live/travis/s2s/pdu-event-id
...
Add the event_id to unsigned PDUs
6 years ago
Will Hunt
bdb881420c
Merge branch 'master' into hs/dns-to-be-hostname
6 years ago
Travis Ralston
dcc4b0bfbc
Remove Travis CI configuration
...
We're using Circle CI for testing a bunch of the spec, and so far it has the advantage of being faster. Also, it's not named the same as me.
We can also remove the Travis CI specific check in generate-matrix-org-assets because Circle CI doesn't touch this.
6 years ago
Travis Ralston
9f399a08fe
Full stops
...
I'm never going to remember these
6 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.
6 years ago
Travis Ralston
eaf175056f
Full stops
6 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.
6 years ago
Travis Ralston
7314405904
Update comment
6 years ago
Travis Ralston
45ec8269e6
Fill out the required fields in all the examples
6 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
6 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.
6 years ago
Travis Ralston
f09c4fd286
Convert joins to swagger
6 years ago
Travis Ralston
24e531a896
Merge pull request #1406 from turt2live/travis/s2s/transactions-swagger
...
Convert things that mention "Transaction" to swagger
6 years ago
Travis Ralston
acf9632afc
Enlist the examples
6 years ago
Travis Ralston
9fa838d3e8
Improve type naming
6 years ago
Travis Ralston
5ade15534d
Remove extra branch in example generation
6 years ago
Travis Ralston
042772aaf5
Make nested titles better
6 years ago
Michael Telatynski
2790c1f069
Merge pull request #1289 from matrix-org/t3chguy/group_id
...
basic spec for group IDs, mostly copied from User IDs as they share grammar
6 years ago
Travis Ralston
cb4fcd1d09
Merge remote-tracking branch 'matrix-org/master' into travis/s2s/transactions-swagger
6 years ago
Travis Ralston
a4e5a461f9
Improve handing of lists appearing in items
6 years ago
Travis Ralston
88beaf4ad8
Completely remove /pull
...
It's not been in use for years - we can safely let it disappear
6 years ago
Travis Ralston
21c4af70a9
Fix schema definitions (spelling, attributes)
6 years ago
Will Hunt
26505533dd
drop dns_name = host in favour of host
6 years ago
Ben Parsons
01d01cfbbb
Merge pull request #1440 from matrix-org/benp/clarifyintro
...
Improve discoverability of /docs/spec/intro/ document by including content in /docs/spec/
6 years ago
Ben Parsons
07aeaadef9
update links which used to point to docs/spec/intro
6 years ago
Matthew Hodgson
4fdc22dc90
Merge pull request #1447 from Cadair/gilesconfig
...
Fix typo in Giles config
6 years ago
Stuart Mumford
7c71b697e7
Fix typo in Giles config
...
Signed-off-by: Stuart Mumford <stuart@cadair.com>
6 years ago
Travis Ralston
e6389e8ffc
Merge pull request #1445 from Cadair/gilesconfig
...
Add config for Giles
6 years ago
Stuart Mumford
03b74476f1
Add config for Giles
...
Signed-off-by: Stuart Mumford <stuart@cadair.com>
6 years ago
Travis Ralston
2aafde4549
Merge pull request #1419 from turt2live/travis/s2s/3pinvites-swagger
...
Convert third party invite exchange to swagger
6 years ago
Travis Ralston
42447dafb4
Merge pull request #1439 from Cadair/swagger_circle
...
Correctly provide swagger UI as a build on Circle
6 years ago
Stuart Mumford
59bdcb5615
Clone and configure the swagger UI as a circle CI artifact
...
Signed-off-by: Stuart Mumford <stuart@cadair.com>
6 years ago
Ben Parsons
e7c79f2bd4
avoid .rst link conflict warnings
6 years ago
Ben Parsons
54d6d58fff
naively move content from intro.rst to index.rst
6 years ago
Travis Ralston
2db970ad6d
Merge pull request #1431 from turt2live/travis/swagger-py3
...
Use python3 in dump-swagger.py
6 years ago
Travis Ralston
2dae0c9c49
use python3 in dump-swagger.py
6 years ago
Travis Ralston
a84a9a6af7
Merge pull request #1405 from turt2live/travis/s2s/keys-swagger
...
Convert server keys to swagger
6 years ago
Travis Ralston
89384c96c1
Full stops, language.
6 years ago
Travis Ralston
e226b60c7f
Merge remote-tracking branch 'matrix-org/master' into travis/s2s/transactions-swagger
6 years ago
Travis Ralston
bafdcf3640
Full stops, spelling, and operation IDs.
6 years ago
Travis Ralston
7cb918407d
Merge remote-tracking branch 'matrix-org/master' into travis/s2s/keys-swagger
6 years ago
Travis Ralston
2e5f530cca
Merge pull request #1373 from turt2live/travis/better-errors
...
Spell out rate limit error schema & give all errors schemas
6 years ago
Travis Ralston
9e6f2b2fd0
Add newsfragment
6 years ago
Travis Ralston
05fb94e195
Merge remote-tracking branch 'matrix-org/master' into travis/better-errors
6 years ago
Travis Ralston
3ff1b0ddea
Merge pull request #1389 from turt2live/travis/towncrier
...
Use Towncrier to generate the unstable changelog
6 years ago