mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Fix openapi inheritance
This commit is contained in:
parent
af4dd0602a
commit
1702d716cd
1 changed files with 23 additions and 24 deletions
23
openapi.yaml
23
openapi.yaml
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue