Fix openapi inheritance

This commit is contained in:
crschnick 2024-06-17 00:51:23 +00:00
parent af4dd0602a
commit 1702d716cd

View file

@ -343,39 +343,38 @@ components:
required: required:
- sessionToken - sessionToken
AuthMethod: AuthMethod:
type: object
discriminator: discriminator:
propertyName: type propertyName: type
properties: mapping:
type: apiKey: '#/components/schemas/ApiKey'
type: string local: '#/components/schemas/Local'
required:
- type
oneOf: oneOf:
- $ref: '#/components/schemas/ApiKey' - $ref: '#/components/schemas/ApiKey'
- $ref: '#/components/schemas/Local' - $ref: '#/components/schemas/Local'
ApiKey: ApiKey:
description: API key authentication description: API key authentication
allOf: type: object
- $ref: '#/components/schemas/AuthMethod'
- type: object
properties: properties:
type:
type: string
key: key:
type: string type: string
description: The API key description: The API key
required: required:
- key - key
- type
Local: Local:
description: Authentication method for local applications. Uses file system access as proof of authentication. description: Authentication method for local applications. Uses file system access as proof of authentication.
allOf: type: object
- $ref: '#/components/schemas/AuthMethod'
- type: object
properties: properties:
type:
type: string
authFileContent: authFileContent:
type: string type: string
description: The contents of the local file $TEMP/xpipe_auth. This file is automatically generated when XPipe starts. description: The contents of the local file $TEMP/xpipe_auth. This file is automatically generated when XPipe starts.
required: required:
- authFileContent - authFileContent
- type
ClientInformation: ClientInformation:
type: object type: object
discriminator: discriminator: