c2s: Make allOf and description siblings throughout the PR

The overall mess with allOf will be addressed separately; this PR just
puts $ref under allOf to fix the glaring misuse of $ref objects.
This commit is contained in:
Kitsune Ral 2020-05-28 14:40:29 +02:00
parent 48af2e5b47
commit 3b5340539d
3 changed files with 12 additions and 13 deletions

View file

@ -201,10 +201,10 @@ paths:
type: object
properties:
auth:
description: |-
Additional authentication information for the
user-interactive authentication API.
allOf:
- description: |-
Additional authentication information for the
user-interactive authentication API.
- $ref: "definitions/auth_data.yaml"
client_secret:
type: string

View file

@ -175,13 +175,12 @@ paths:
ID of the logged-in device. Will be the same as the
corresponding parameter in the request, if one was specified.
well_known:
description: |-
Optional client configuration provided by the server. If present,
clients SHOULD use the provided object to reconfigure themselves,
optionally validating the URLs within. This object takes the same
form as the one returned from .well-known autodiscovery.
allOf:
- type: object
description: |-
Optional client configuration provided by the server. If present,
clients SHOULD use the provided object to reconfigure themselves,
optionally validating the URLs within. This object takes the same
form as the one returned from .well-known autodiscovery.
- "$ref": "definitions/wellknown/full.yaml"
400:
description: |-

View file

@ -89,13 +89,13 @@ paths:
type: object
properties:
auth:
allOf:
- description: |-
description: |-
Additional authentication information for the
user-interactive authentication API. Note that this
information is *not* used to define how the registered user
should be authenticated, but is instead used to
authenticate the ``register`` call itself.
allOf:
- "$ref": "definitions/auth_data.yaml"
username:
type: string
@ -347,9 +347,9 @@ paths:
description: The new password for the account.
example: "ihatebananas"
auth:
allOf:
- description: |-
description: |-
Additional authentication information for the user-interactive authentication API.
allOf:
- "$ref": "definitions/auth_data.yaml"
required: ["new_password"]
responses: