mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +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:
|
||||
- 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
|
||||
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
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue