fix swagger

This commit is contained in:
kiwiidb
2022-05-18 12:16:24 +02:00
parent d01b9c492f
commit bc4655fe8c
4 changed files with 69 additions and 5 deletions

View File

@@ -816,6 +816,15 @@ const docTemplate = `{
"amt": {
"type": "integer"
},
"custom_records": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"description": {
"type": "string"
},
@@ -825,6 +834,9 @@ const docTemplate = `{
"ispaid": {
"type": "boolean"
},
"keysend": {
"type": "boolean"
},
"pay_req": {
"type": "string"
},
@@ -908,9 +920,21 @@ const docTemplate = `{
"controllers.OutgoingInvoice": {
"type": "object",
"properties": {
"custom_records": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"fee": {
"type": "integer"
},
"keysend": {
"type": "boolean"
},
"memo": {
"type": "string"
},
@@ -1025,7 +1049,7 @@ var SwaggerInfo = &swag.Spec{
Version: "0.6.1",
Host: "",
BasePath: "/",
Schemes: []string{"http", "https"},
Schemes: []string{"https", "http"},
Title: "LNDhub.go",
Description: "Accounting wrapper for the Lightning Network providing separate accounts for end-users.",
InfoInstanceName: "swagger",