fix: generate swagger docs
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2021-09-26 14:34:28 +02:00
parent 4bea25dbbc
commit b52eac0d3a
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 249 additions and 84 deletions

View File

@ -1,14 +1,13 @@
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // Package swagger GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag // This file was generated by swaggo/swag
package swagger package swagger
import ( import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"strings" "strings"
"text/template"
"github.com/alecthomas/template"
"github.com/swaggo/swag" "github.com/swaggo/swag"
) )
@ -16,7 +15,7 @@ var doc = `{
"schemes": {{ marshal .Schemes }}, "schemes": {{ marshal .Schemes }},
"swagger": "2.0", "swagger": "2.0",
"info": { "info": {
"description": "{{.Description}}", "description": "{{escape .Description}}",
"title": "{{.Title}}", "title": "{{.Title}}",
"contact": { "contact": {
"name": "General Vikunja contact", "name": "General Vikunja contact",
@ -7405,8 +7404,7 @@ var doc = `{
"type": "string" "type": "string"
}, },
"info": { "info": {
"description": "This can be used to supply extra information from an image provider to clients", "description": "This can be used to supply extra information from an image provider to clients"
"type": "object"
}, },
"thumb": { "thumb": {
"type": "string" "type": "string"
@ -7556,7 +7554,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this bucket was last updated. You cannot change this value.", "description": "A timestamp when this bucket was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.BulkAssignees": { "models.BulkAssignees": {
@ -7568,7 +7568,9 @@ var doc = `{
"items": { "items": {
"$ref": "#/definitions/user.User" "$ref": "#/definitions/user.User"
} }
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.BulkTask": { "models.BulkTask": {
@ -7710,7 +7712,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.", "description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.DatabaseNotifications": { "models.DatabaseNotifications": {
@ -7729,8 +7733,7 @@ var doc = `{
"type": "string" "type": "string"
}, },
"notification": { "notification": {
"description": "The actual content of the notification.", "description": "The actual content of the notification."
"type": "object"
}, },
"read": { "read": {
"description": "Whether or not to mark this notification as read or unread.\nTrue is read, false is unread.", "description": "Whether or not to mark this notification as read or unread.\nTrue is read, false is unread.",
@ -7739,7 +7742,9 @@ var doc = `{
"read_at": { "read_at": {
"description": "When this notification is marked as read, this will be updated with the current timestamp.", "description": "When this notification is marked as read, this will be updated with the current timestamp.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.Label": { "models.Label": {
@ -7775,7 +7780,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this label was last updated. You cannot change this value.", "description": "A timestamp when this label was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.LabelTask": { "models.LabelTask": {
@ -7788,7 +7795,9 @@ var doc = `{
"label_id": { "label_id": {
"description": "The label id you want to associate with a task.", "description": "The label id you want to associate with a task.",
"type": "integer" "type": "integer"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.LabelTaskBulk": { "models.LabelTaskBulk": {
@ -7800,7 +7809,9 @@ var doc = `{
"items": { "items": {
"$ref": "#/definitions/models.Label" "$ref": "#/definitions/models.Label"
} }
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.LinkSharing": { "models.LinkSharing": {
@ -7845,15 +7856,16 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this share was last updated. You cannot change this value.", "description": "A timestamp when this share was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.List": { "models.List": {
"type": "object", "type": "object",
"properties": { "properties": {
"background_information": { "background_information": {
"description": "Holds extra information about the background set since some background providers require attribution or similar. If not null, the background can be accessed at /lists/{listID}/background", "description": "Holds extra information about the background set since some background providers require attribution or similar. If not null, the background can be accessed at /lists/{listID}/background"
"type": "object"
}, },
"created": { "created": {
"description": "A timestamp when this list was created. You cannot change this value.", "description": "A timestamp when this list was created. You cannot change this value.",
@ -7910,7 +7922,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this list was last updated. You cannot change this value.", "description": "A timestamp when this list was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.ListDuplicate": { "models.ListDuplicate": {
@ -7923,7 +7937,9 @@ var doc = `{
"namespace_id": { "namespace_id": {
"description": "The target namespace ID", "description": "The target namespace ID",
"type": "integer" "type": "integer"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.ListUser": { "models.ListUser": {
@ -7950,7 +7966,9 @@ var doc = `{
"user_id": { "user_id": {
"description": "The username.", "description": "The username.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.Message": { "models.Message": {
@ -8003,7 +8021,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this namespace was last updated. You cannot change this value.", "description": "A timestamp when this namespace was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.NamespaceUser": { "models.NamespaceUser": {
@ -8030,7 +8050,9 @@ var doc = `{
"user_id": { "user_id": {
"description": "The username.", "description": "The username.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.NamespaceWithLists": { "models.NamespaceWithLists": {
@ -8080,7 +8102,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this namespace was last updated. You cannot change this value.", "description": "A timestamp when this namespace was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.RelatedTaskMap": { "models.RelatedTaskMap": {
@ -8128,7 +8152,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this filter was last updated. You cannot change this value.", "description": "A timestamp when this filter was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.Subscription": { "models.Subscription": {
@ -8152,7 +8178,9 @@ var doc = `{
"user": { "user": {
"description": "The user who made this subscription", "description": "The user who made this subscription",
"$ref": "#/definitions/user.User" "$ref": "#/definitions/user.User"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.Task": { "models.Task": {
@ -8287,7 +8315,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.", "description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TaskAssginee": { "models.TaskAssginee": {
@ -8298,7 +8328,9 @@ var doc = `{
}, },
"user_id": { "user_id": {
"type": "integer" "type": "integer"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TaskAttachment": { "models.TaskAttachment": {
@ -8318,7 +8350,9 @@ var doc = `{
}, },
"task_id": { "task_id": {
"type": "integer" "type": "integer"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TaskCollection": { "models.TaskCollection": {
@ -8366,7 +8400,9 @@ var doc = `{
"items": { "items": {
"type": "string" "type": "string"
} }
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TaskComment": { "models.TaskComment": {
@ -8386,7 +8422,9 @@ var doc = `{
}, },
"updated": { "updated": {
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TaskRelation": { "models.TaskRelation": {
@ -8411,7 +8449,9 @@ var doc = `{
"task_id": { "task_id": {
"description": "The ID of the \"base\" task, the task which has a relation to another.", "description": "The ID of the \"base\" task, the task which has a relation to another.",
"type": "integer" "type": "integer"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.Team": { "models.Team": {
@ -8449,7 +8489,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.", "description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TeamList": { "models.TeamList": {
@ -8476,7 +8518,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.", "description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TeamMember": { "models.TeamMember": {
@ -8497,7 +8541,9 @@ var doc = `{
"username": { "username": {
"description": "The username of the member. We use this to prevent automated user id entering.", "description": "The username of the member. We use this to prevent automated user id entering.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TeamNamespace": { "models.TeamNamespace": {
@ -8524,7 +8570,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.", "description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TeamUser": { "models.TeamUser": {
@ -8560,7 +8608,8 @@ var doc = `{
"type": "string", "type": "string",
"maxLength": 250, "maxLength": 250,
"minLength": 1 "minLength": 1
} },
"web.Auth": {}
} }
}, },
"models.TeamWithRight": { "models.TeamWithRight": {
@ -8601,7 +8650,9 @@ var doc = `{
"updated": { "updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.", "description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.UserWithRight": { "models.UserWithRight": {
@ -8636,7 +8687,8 @@ var doc = `{
"type": "string", "type": "string",
"maxLength": 250, "maxLength": 250,
"minLength": 1 "minLength": 1
} },
"web.Auth": {}
} }
}, },
"notifications.DatabaseNotification": { "notifications.DatabaseNotification": {
@ -8655,8 +8707,7 @@ var doc = `{
"type": "string" "type": "string"
}, },
"notification": { "notification": {
"description": "The actual content of the notification.", "description": "The actual content of the notification."
"type": "object"
}, },
"read_at": { "read_at": {
"description": "When this notification is marked as read, this will be updated with the current timestamp.", "description": "When this notification is marked as read, this will be updated with the current timestamp.",
@ -8848,7 +8899,8 @@ var doc = `{
"type": "string", "type": "string",
"maxLength": 250, "maxLength": 250,
"minLength": 1 "minLength": 1
} },
"web.Auth": {}
} }
}, },
"v1.LinkShareAuth": { "v1.LinkShareAuth": {
@ -9094,6 +9146,13 @@ func (s *s) ReadDoc() string {
a, _ := json.Marshal(v) a, _ := json.Marshal(v)
return string(a) return string(a)
}, },
"escape": func(v interface{}) string {
// escape tabs
str := strings.Replace(v.(string), "\t", "\\t", -1)
// replace " with \", and if that results in \\", replace that with \\\"
str = strings.Replace(str, "\"", "\\\"", -1)
return strings.Replace(str, "\\\\\"", "\\\\\\\"", -1)
},
}).Parse(doc) }).Parse(doc)
if err != nil { if err != nil {
return doc return doc

View File

@ -7388,8 +7388,7 @@
"type": "string" "type": "string"
}, },
"info": { "info": {
"description": "This can be used to supply extra information from an image provider to clients", "description": "This can be used to supply extra information from an image provider to clients"
"type": "object"
}, },
"thumb": { "thumb": {
"type": "string" "type": "string"
@ -7539,7 +7538,9 @@
"updated": { "updated": {
"description": "A timestamp when this bucket was last updated. You cannot change this value.", "description": "A timestamp when this bucket was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.BulkAssignees": { "models.BulkAssignees": {
@ -7551,7 +7552,9 @@
"items": { "items": {
"$ref": "#/definitions/user.User" "$ref": "#/definitions/user.User"
} }
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.BulkTask": { "models.BulkTask": {
@ -7693,7 +7696,9 @@
"updated": { "updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.", "description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.DatabaseNotifications": { "models.DatabaseNotifications": {
@ -7712,8 +7717,7 @@
"type": "string" "type": "string"
}, },
"notification": { "notification": {
"description": "The actual content of the notification.", "description": "The actual content of the notification."
"type": "object"
}, },
"read": { "read": {
"description": "Whether or not to mark this notification as read or unread.\nTrue is read, false is unread.", "description": "Whether or not to mark this notification as read or unread.\nTrue is read, false is unread.",
@ -7722,7 +7726,9 @@
"read_at": { "read_at": {
"description": "When this notification is marked as read, this will be updated with the current timestamp.", "description": "When this notification is marked as read, this will be updated with the current timestamp.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.Label": { "models.Label": {
@ -7758,7 +7764,9 @@
"updated": { "updated": {
"description": "A timestamp when this label was last updated. You cannot change this value.", "description": "A timestamp when this label was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.LabelTask": { "models.LabelTask": {
@ -7771,7 +7779,9 @@
"label_id": { "label_id": {
"description": "The label id you want to associate with a task.", "description": "The label id you want to associate with a task.",
"type": "integer" "type": "integer"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.LabelTaskBulk": { "models.LabelTaskBulk": {
@ -7783,7 +7793,9 @@
"items": { "items": {
"$ref": "#/definitions/models.Label" "$ref": "#/definitions/models.Label"
} }
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.LinkSharing": { "models.LinkSharing": {
@ -7828,15 +7840,16 @@
"updated": { "updated": {
"description": "A timestamp when this share was last updated. You cannot change this value.", "description": "A timestamp when this share was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.List": { "models.List": {
"type": "object", "type": "object",
"properties": { "properties": {
"background_information": { "background_information": {
"description": "Holds extra information about the background set since some background providers require attribution or similar. If not null, the background can be accessed at /lists/{listID}/background", "description": "Holds extra information about the background set since some background providers require attribution or similar. If not null, the background can be accessed at /lists/{listID}/background"
"type": "object"
}, },
"created": { "created": {
"description": "A timestamp when this list was created. You cannot change this value.", "description": "A timestamp when this list was created. You cannot change this value.",
@ -7893,7 +7906,9 @@
"updated": { "updated": {
"description": "A timestamp when this list was last updated. You cannot change this value.", "description": "A timestamp when this list was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.ListDuplicate": { "models.ListDuplicate": {
@ -7906,7 +7921,9 @@
"namespace_id": { "namespace_id": {
"description": "The target namespace ID", "description": "The target namespace ID",
"type": "integer" "type": "integer"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.ListUser": { "models.ListUser": {
@ -7933,7 +7950,9 @@
"user_id": { "user_id": {
"description": "The username.", "description": "The username.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.Message": { "models.Message": {
@ -7986,7 +8005,9 @@
"updated": { "updated": {
"description": "A timestamp when this namespace was last updated. You cannot change this value.", "description": "A timestamp when this namespace was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.NamespaceUser": { "models.NamespaceUser": {
@ -8013,7 +8034,9 @@
"user_id": { "user_id": {
"description": "The username.", "description": "The username.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.NamespaceWithLists": { "models.NamespaceWithLists": {
@ -8063,7 +8086,9 @@
"updated": { "updated": {
"description": "A timestamp when this namespace was last updated. You cannot change this value.", "description": "A timestamp when this namespace was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.RelatedTaskMap": { "models.RelatedTaskMap": {
@ -8111,7 +8136,9 @@
"updated": { "updated": {
"description": "A timestamp when this filter was last updated. You cannot change this value.", "description": "A timestamp when this filter was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.Subscription": { "models.Subscription": {
@ -8135,7 +8162,9 @@
"user": { "user": {
"description": "The user who made this subscription", "description": "The user who made this subscription",
"$ref": "#/definitions/user.User" "$ref": "#/definitions/user.User"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.Task": { "models.Task": {
@ -8270,7 +8299,9 @@
"updated": { "updated": {
"description": "A timestamp when this task was last updated. You cannot change this value.", "description": "A timestamp when this task was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TaskAssginee": { "models.TaskAssginee": {
@ -8281,7 +8312,9 @@
}, },
"user_id": { "user_id": {
"type": "integer" "type": "integer"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TaskAttachment": { "models.TaskAttachment": {
@ -8301,7 +8334,9 @@
}, },
"task_id": { "task_id": {
"type": "integer" "type": "integer"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TaskCollection": { "models.TaskCollection": {
@ -8349,7 +8384,9 @@
"items": { "items": {
"type": "string" "type": "string"
} }
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TaskComment": { "models.TaskComment": {
@ -8369,7 +8406,9 @@
}, },
"updated": { "updated": {
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TaskRelation": { "models.TaskRelation": {
@ -8394,7 +8433,9 @@
"task_id": { "task_id": {
"description": "The ID of the \"base\" task, the task which has a relation to another.", "description": "The ID of the \"base\" task, the task which has a relation to another.",
"type": "integer" "type": "integer"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.Team": { "models.Team": {
@ -8432,7 +8473,9 @@
"updated": { "updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.", "description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TeamList": { "models.TeamList": {
@ -8459,7 +8502,9 @@
"updated": { "updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.", "description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TeamMember": { "models.TeamMember": {
@ -8480,7 +8525,9 @@
"username": { "username": {
"description": "The username of the member. We use this to prevent automated user id entering.", "description": "The username of the member. We use this to prevent automated user id entering.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TeamNamespace": { "models.TeamNamespace": {
@ -8507,7 +8554,9 @@
"updated": { "updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.", "description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.TeamUser": { "models.TeamUser": {
@ -8543,7 +8592,8 @@
"type": "string", "type": "string",
"maxLength": 250, "maxLength": 250,
"minLength": 1 "minLength": 1
} },
"web.Auth": {}
} }
}, },
"models.TeamWithRight": { "models.TeamWithRight": {
@ -8584,7 +8634,9 @@
"updated": { "updated": {
"description": "A timestamp when this relation was last updated. You cannot change this value.", "description": "A timestamp when this relation was last updated. You cannot change this value.",
"type": "string" "type": "string"
} },
"web.CRUDable": {},
"web.Rights": {}
} }
}, },
"models.UserWithRight": { "models.UserWithRight": {
@ -8619,7 +8671,8 @@
"type": "string", "type": "string",
"maxLength": 250, "maxLength": 250,
"minLength": 1 "minLength": 1
} },
"web.Auth": {}
} }
}, },
"notifications.DatabaseNotification": { "notifications.DatabaseNotification": {
@ -8638,8 +8691,7 @@
"type": "string" "type": "string"
}, },
"notification": { "notification": {
"description": "The actual content of the notification.", "description": "The actual content of the notification."
"type": "object"
}, },
"read_at": { "read_at": {
"description": "When this notification is marked as read, this will be updated with the current timestamp.", "description": "When this notification is marked as read, this will be updated with the current timestamp.",
@ -8831,7 +8883,8 @@
"type": "string", "type": "string",
"maxLength": 250, "maxLength": 250,
"minLength": 1 "minLength": 1
} },
"web.Auth": {}
} }
}, },
"v1.LinkShareAuth": { "v1.LinkShareAuth": {

View File

@ -12,7 +12,6 @@ definitions:
info: info:
description: This can be used to supply extra information from an image provider description: This can be used to supply extra information from an image provider
to clients to clients
type: object
thumb: thumb:
type: string type: string
url: url:
@ -125,6 +124,8 @@ definitions:
description: A timestamp when this bucket was last updated. You cannot change description: A timestamp when this bucket was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.BulkAssignees: models.BulkAssignees:
properties: properties:
@ -133,6 +134,8 @@ definitions:
items: items:
$ref: '#/definitions/user.User' $ref: '#/definitions/user.User'
type: array type: array
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.BulkTask: models.BulkTask:
properties: properties:
@ -259,6 +262,8 @@ definitions:
description: A timestamp when this task was last updated. You cannot change description: A timestamp when this task was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.DatabaseNotifications: models.DatabaseNotifications:
properties: properties:
@ -274,7 +279,6 @@ definitions:
type: string type: string
notification: notification:
description: The actual content of the notification. description: The actual content of the notification.
type: object
read: read:
description: |- description: |-
Whether or not to mark this notification as read or unread. Whether or not to mark this notification as read or unread.
@ -284,6 +288,8 @@ definitions:
description: When this notification is marked as read, this will be updated description: When this notification is marked as read, this will be updated
with the current timestamp. with the current timestamp.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.Label: models.Label:
properties: properties:
@ -314,6 +320,8 @@ definitions:
description: A timestamp when this label was last updated. You cannot change description: A timestamp when this label was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.LabelTask: models.LabelTask:
properties: properties:
@ -324,6 +332,8 @@ definitions:
label_id: label_id:
description: The label id you want to associate with a task. description: The label id you want to associate with a task.
type: integer type: integer
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.LabelTaskBulk: models.LabelTaskBulk:
properties: properties:
@ -332,6 +342,8 @@ definitions:
items: items:
$ref: '#/definitions/models.Label' $ref: '#/definitions/models.Label'
type: array type: array
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.LinkSharing: models.LinkSharing:
properties: properties:
@ -372,6 +384,8 @@ definitions:
description: A timestamp when this share was last updated. You cannot change description: A timestamp when this share was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.List: models.List:
properties: properties:
@ -379,7 +393,6 @@ definitions:
description: Holds extra information about the background set since some background description: Holds extra information about the background set since some background
providers require attribution or similar. If not null, the background can providers require attribution or similar. If not null, the background can
be accessed at /lists/{listID}/background be accessed at /lists/{listID}/background
type: object
created: created:
description: A timestamp when this list was created. You cannot change this description: A timestamp when this list was created. You cannot change this
value. value.
@ -429,6 +442,8 @@ definitions:
description: A timestamp when this list was last updated. You cannot change description: A timestamp when this list was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.ListDuplicate: models.ListDuplicate:
properties: properties:
@ -438,6 +453,8 @@ definitions:
namespace_id: namespace_id:
description: The target namespace ID description: The target namespace ID
type: integer type: integer
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.ListUser: models.ListUser:
properties: properties:
@ -461,6 +478,8 @@ definitions:
user_id: user_id:
description: The username. description: The username.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.Message: models.Message:
properties: properties:
@ -504,6 +523,8 @@ definitions:
description: A timestamp when this namespace was last updated. You cannot description: A timestamp when this namespace was last updated. You cannot
change this value. change this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.NamespaceUser: models.NamespaceUser:
properties: properties:
@ -527,6 +548,8 @@ definitions:
user_id: user_id:
description: The username. description: The username.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.NamespaceWithLists: models.NamespaceWithLists:
properties: properties:
@ -568,6 +591,8 @@ definitions:
description: A timestamp when this namespace was last updated. You cannot description: A timestamp when this namespace was last updated. You cannot
change this value. change this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.RelatedTaskMap: models.RelatedTaskMap:
additionalProperties: additionalProperties:
@ -606,6 +631,8 @@ definitions:
description: A timestamp when this filter was last updated. You cannot change description: A timestamp when this filter was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.Subscription: models.Subscription:
properties: properties:
@ -624,6 +651,8 @@ definitions:
user: user:
$ref: '#/definitions/user.User' $ref: '#/definitions/user.User'
description: The user who made this subscription description: The user who made this subscription
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.Task: models.Task:
properties: properties:
@ -745,6 +774,8 @@ definitions:
description: A timestamp when this task was last updated. You cannot change description: A timestamp when this task was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.TaskAssginee: models.TaskAssginee:
properties: properties:
@ -752,6 +783,8 @@ definitions:
type: string type: string
user_id: user_id:
type: integer type: integer
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.TaskAttachment: models.TaskAttachment:
properties: properties:
@ -765,6 +798,8 @@ definitions:
type: integer type: integer
task_id: task_id:
type: integer type: integer
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.TaskCollection: models.TaskCollection:
properties: properties:
@ -802,6 +837,8 @@ definitions:
items: items:
type: string type: string
type: array type: array
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.TaskComment: models.TaskComment:
properties: properties:
@ -815,6 +852,8 @@ definitions:
type: integer type: integer
updated: updated:
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.TaskRelation: models.TaskRelation:
properties: properties:
@ -834,6 +873,8 @@ definitions:
task_id: task_id:
description: The ID of the "base" task, the task which has a relation to another. description: The ID of the "base" task, the task which has a relation to another.
type: integer type: integer
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.Team: models.Team:
properties: properties:
@ -864,6 +905,8 @@ definitions:
description: A timestamp when this relation was last updated. You cannot change description: A timestamp when this relation was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.TeamList: models.TeamList:
properties: properties:
@ -887,6 +930,8 @@ definitions:
description: A timestamp when this relation was last updated. You cannot change description: A timestamp when this relation was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.TeamMember: models.TeamMember:
properties: properties:
@ -905,6 +950,8 @@ definitions:
description: The username of the member. We use this to prevent automated description: The username of the member. We use this to prevent automated
user id entering. user id entering.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.TeamNamespace: models.TeamNamespace:
properties: properties:
@ -928,6 +975,8 @@ definitions:
description: A timestamp when this relation was last updated. You cannot change description: A timestamp when this relation was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.TeamUser: models.TeamUser:
properties: properties:
@ -958,6 +1007,7 @@ definitions:
maxLength: 250 maxLength: 250
minLength: 1 minLength: 1
type: string type: string
web.Auth: {}
type: object type: object
models.TeamWithRight: models.TeamWithRight:
properties: properties:
@ -990,6 +1040,8 @@ definitions:
description: A timestamp when this relation was last updated. You cannot change description: A timestamp when this relation was last updated. You cannot change
this value. this value.
type: string type: string
web.CRUDable: {}
web.Rights: {}
type: object type: object
models.UserWithRight: models.UserWithRight:
properties: properties:
@ -1018,6 +1070,7 @@ definitions:
maxLength: 250 maxLength: 250
minLength: 1 minLength: 1
type: string type: string
web.Auth: {}
type: object type: object
notifications.DatabaseNotification: notifications.DatabaseNotification:
properties: properties:
@ -1033,7 +1086,6 @@ definitions:
type: string type: string
notification: notification:
description: The actual content of the notification. description: The actual content of the notification.
type: object
read_at: read_at:
description: When this notification is marked as read, this will be updated description: When this notification is marked as read, this will be updated
with the current timestamp. with the current timestamp.
@ -1172,6 +1224,7 @@ definitions:
maxLength: 250 maxLength: 250
minLength: 1 minLength: 1
type: string type: string
web.Auth: {}
type: object type: object
v1.LinkShareAuth: v1.LinkShareAuth:
properties: properties: