update swaggo docs
All checks were successful
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Successful in 18m8s
mozhi pipeline / Build and publish artifacts (push) Successful in 45m44s

This commit is contained in:
2023-11-12 11:48:52 +05:30
parent c065bf3ae7
commit 9b3af36673
5 changed files with 101 additions and 29 deletions

View File

@@ -1,4 +1,5 @@
// Package docs Code generated by swaggo/swag. DO NOT EDIT
// Code generated by swaggo/swag. DO NOT EDIT.
package docs
import "github.com/swaggo/swag"
@@ -168,6 +169,12 @@ const docTemplate = `{
},
"translated-text": {
"type": "string"
},
"word_choices": {
"type": "array",
"items": {
"$ref": "#/definitions/libmozhi.WordChoices"
}
}
}
},
@@ -181,6 +188,26 @@ const docTemplate = `{
"type": "string"
}
}
},
"libmozhi.WordChoices": {
"type": "object",
"properties": {
"examples_source": {
"type": "array",
"items": {
"type": "string"
}
},
"examples_target": {
"type": "array",
"items": {
"type": "string"
}
},
"word": {
"type": "string"
}
}
}
}
}`

View File

@@ -157,6 +157,12 @@
},
"translated-text": {
"type": "string"
},
"word_choices": {
"type": "array",
"items": {
"$ref": "#/definitions/libmozhi.WordChoices"
}
}
}
},
@@ -170,6 +176,26 @@
"type": "string"
}
}
},
"libmozhi.WordChoices": {
"type": "object",
"properties": {
"examples_source": {
"type": "array",
"items": {
"type": "string"
}
},
"examples_target": {
"type": "array",
"items": {
"type": "string"
}
},
"word": {
"type": "string"
}
}
}
}
}

View File

@@ -11,6 +11,10 @@ definitions:
type: string
translated-text:
type: string
word_choices:
items:
$ref: '#/definitions/libmozhi.WordChoices'
type: array
type: object
libmozhi.List:
properties:
@@ -19,6 +23,19 @@ definitions:
name:
type: string
type: object
libmozhi.WordChoices:
properties:
examples_source:
items:
type: string
type: array
examples_target:
items:
type: string
type: array
word:
type: string
type: object
info:
contact: {}
paths: