Merge pull request #2084 from matrix-org/travis/1.0/s2s-swagger-touchups

Touchups on the s2s swagger definitions
This commit is contained in:
Travis Ralston 2019-06-10 07:22:24 -06:00 committed by GitHub
commit 6d62a1b444
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -57,7 +57,6 @@ paths:
`room version specification`_ for precise event formats. **The response body `room version specification`_ for precise event formats. **The response body
here describes the common event fields in more detail and may be missing other here describes the common event fields in more detail and may be missing other
required fields for a PDU.** required fields for a PDU.**
schema:
schema: schema:
type: object type: object
properties: properties:

View file

@ -128,7 +128,7 @@ paths:
x-example: "@someone:example.org" x-example: "@someone:example.org"
- in: query - in: query
name: field name: field
type: enum type: string
enum: ['displayname', 'avatar_url'] enum: ['displayname', 'avatar_url']
description: |- description: |-
The field to query. If specified, the server will only return the given field The field to query. If specified, the server will only return the given field

View file

@ -42,7 +42,6 @@ paths:
description: |- description: |-
The user ID to retrieve devices for. Must be a user local to the The user ID to retrieve devices for. Must be a user local to the
receiving homeserver. receiving homeserver.
required: true
x-example: "@alice:example.org" x-example: "@alice:example.org"
responses: responses:
200: 200:

View file

@ -27,6 +27,7 @@ paths:
get: get:
summary: Get the implementation name and version of this homeserver. summary: Get the implementation name and version of this homeserver.
description: Get the implementation name and version of this homeserver. description: Get the implementation name and version of this homeserver.
operationId: getVersion
responses: responses:
200: 200:
description: description:

View file

@ -29,6 +29,7 @@ paths:
Gets information about the delegated server for server-server communication Gets information about the delegated server for server-server communication
between Matrix homeservers. Servers should follow 30x redirects, carefully between Matrix homeservers. Servers should follow 30x redirects, carefully
avoiding redirect loops, and use normal X.509 certificate validation. avoiding redirect loops, and use normal X.509 certificate validation.
operationId: getWellKnown
responses: responses:
200: 200:
description: description: