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