Mark `type` in `AuthenticationData` as optional (#989)

pull/993/head
Richard van der Hoff 3 years ago committed by GitHub
parent d199c05e97
commit 284d0e201f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1 @@
Clarify that the `type` in user-interactive authentication can be omitted.

@ -17,7 +17,11 @@ description: |-
type: object
properties:
type:
description: The login type that the client is attempting to complete.
description: |-
The authentication type that the client is attempting to complete.
May be omitted if `session` is given, and the client is reissuing a
request which it believes has been completed out-of-band (for example,
via the [fallback mechanism](#fallback)).
type: string
session:
description: The value of the session key given by the homeserver.
@ -25,8 +29,6 @@ properties:
additionalProperties:
description: Keys dependent on the login type
type: object
required:
- type
example:
type: "example.type.foo"
session: "xxxxx"

Loading…
Cancel
Save