Correctly nest the capabilities response object

Everything is contained in a "capabilities" property, which is not represented by the schema. The example was correct.
This commit is contained in:
Travis Ralston 2019-02-11 20:31:48 -07:00
parent 3e06473305
commit d31d2f5e57
2 changed files with 37 additions and 32 deletions

View file

@ -62,11 +62,15 @@ paths:
schema:
type: object
required: ["capabilities"]
additionalProperties:
properties:
capabilities:
type: object
title: Capabilities
description: |-
The custom capabilities the server supports, using the
Java package naming convention.
additionalProperties:
type: object
properties:
"m.change_password":
type: object

View file

@ -0,0 +1 @@
Support optional features by having clients query for capabilities.