mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-19 17:10:29 +00:00
fix types
This commit is contained in:
parent
1143246816
commit
a67316a889
7 changed files with 42 additions and 37 deletions
|
@ -42,7 +42,7 @@ const docTemplate = `{
|
|||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/v1.GroupTokenPayload"
|
||||
"$ref": "#/definitions/v1.GroupInvitationCreate"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
@ -50,7 +50,7 @@ const docTemplate = `{
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/v1.GroupTokenResponse"
|
||||
"$ref": "#/definitions/v1.GroupInvitation"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1582,26 +1582,26 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"v1.GroupTokenPayload": {
|
||||
"v1.GroupInvitation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"expiresAt": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
},
|
||||
"uses": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.GroupTokenResponse": {
|
||||
"v1.GroupInvitationCreate": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"expiresAt": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
},
|
||||
"uses": {
|
||||
"type": "integer"
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/v1.GroupTokenPayload"
|
||||
"$ref": "#/definitions/v1.GroupInvitationCreate"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
@ -42,7 +42,7 @@
|
|||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/v1.GroupTokenResponse"
|
||||
"$ref": "#/definitions/v1.GroupInvitation"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1574,26 +1574,26 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"v1.GroupTokenPayload": {
|
||||
"v1.GroupInvitation": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"expiresAt": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
},
|
||||
"uses": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1.GroupTokenResponse": {
|
||||
"v1.GroupInvitationCreate": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"expiresAt": {
|
||||
"type": "string"
|
||||
},
|
||||
"token": {
|
||||
"type": "string"
|
||||
},
|
||||
"uses": {
|
||||
"type": "integer"
|
||||
}
|
||||
|
|
|
@ -355,14 +355,7 @@ definitions:
|
|||
version:
|
||||
type: string
|
||||
type: object
|
||||
v1.GroupTokenPayload:
|
||||
properties:
|
||||
expiresAt:
|
||||
type: string
|
||||
uses:
|
||||
type: integer
|
||||
type: object
|
||||
v1.GroupTokenResponse:
|
||||
v1.GroupInvitation:
|
||||
properties:
|
||||
expiresAt:
|
||||
type: string
|
||||
|
@ -371,6 +364,13 @@ definitions:
|
|||
uses:
|
||||
type: integer
|
||||
type: object
|
||||
v1.GroupInvitationCreate:
|
||||
properties:
|
||||
expiresAt:
|
||||
type: string
|
||||
uses:
|
||||
type: integer
|
||||
type: object
|
||||
v1.ItemAttachmentToken:
|
||||
properties:
|
||||
token:
|
||||
|
@ -402,14 +402,14 @@ paths:
|
|||
name: payload
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/v1.GroupTokenPayload'
|
||||
$ref: '#/definitions/v1.GroupInvitationCreate'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/v1.GroupTokenResponse'
|
||||
$ref: '#/definitions/v1.GroupInvitation'
|
||||
security:
|
||||
- Bearer: []
|
||||
summary: Get the current user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue