diff --git a/swagger/docs.go b/swagger/docs.go index 4f259f284..14b0f3352 100644 --- a/swagger/docs.go +++ b/swagger/docs.go @@ -3822,6 +3822,13 @@ const docTemplate = `{ "config.Gallery": { "type": "object", "properties": { + "mirrors": { + "description": "Mirrors are tried in order when URL cannot be fetched. They are a\nfallback for availability, not a load-balancing pool: the primary is\nalways preferred, and a mirror is only consulted after the one before\nit fails. Any URI the gallery loader understands works here\n(https://, github:, file://).", + "type": "array", + "items": { + "type": "string" + } + }, "name": { "type": "string" }, diff --git a/swagger/swagger.json b/swagger/swagger.json index 39dd6c03a..4181a0e82 100644 --- a/swagger/swagger.json +++ b/swagger/swagger.json @@ -3819,6 +3819,13 @@ "config.Gallery": { "type": "object", "properties": { + "mirrors": { + "description": "Mirrors are tried in order when URL cannot be fetched. They are a\nfallback for availability, not a load-balancing pool: the primary is\nalways preferred, and a mirror is only consulted after the one before\nit fails. Any URI the gallery loader understands works here\n(https://, github:, file://).", + "type": "array", + "items": { + "type": "string" + } + }, "name": { "type": "string" }, diff --git a/swagger/swagger.yaml b/swagger/swagger.yaml index 90e0bb3c4..8b66f6892 100644 --- a/swagger/swagger.yaml +++ b/swagger/swagger.yaml @@ -2,6 +2,16 @@ basePath: / definitions: config.Gallery: properties: + mirrors: + description: |- + Mirrors are tried in order when URL cannot be fetched. They are a + fallback for availability, not a load-balancing pool: the primary is + always preferred, and a mirror is only consulted after the one before + it fails. Any URI the gallery loader understands works here + (https://, github:, file://). + items: + type: string + type: array name: type: string url: