mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
refactor: Reduce zb binary size (#1783)
Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
+8
-8
@@ -1146,7 +1146,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.ImageTags"
|
||||
"$ref": "#/definitions/common.ImageTags"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@@ -1280,13 +1280,10 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.ImageTags": {
|
||||
"api.RepositoryList": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"repositories": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
@@ -1294,10 +1291,13 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.RepositoryList": {
|
||||
"common.ImageTags": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"repositories": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
|
||||
@@ -1137,7 +1137,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/api.ImageTags"
|
||||
"$ref": "#/definitions/common.ImageTags"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@@ -1271,13 +1271,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.ImageTags": {
|
||||
"api.RepositoryList": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"repositories": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
@@ -1285,10 +1282,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"api.RepositoryList": {
|
||||
"common.ImageTags": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"repositories": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
|
||||
@@ -83,18 +83,18 @@ definitions:
|
||||
manifest forming an association between the image manifest and the other
|
||||
manifest.
|
||||
type: object
|
||||
api.ImageTags:
|
||||
api.RepositoryList:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
tags:
|
||||
repositories:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
api.RepositoryList:
|
||||
common.ImageTags:
|
||||
properties:
|
||||
repositories:
|
||||
name:
|
||||
type: string
|
||||
tags:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
@@ -994,7 +994,7 @@ paths:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/api.ImageTags'
|
||||
$ref: '#/definitions/common.ImageTags'
|
||||
"400":
|
||||
description: bad request".
|
||||
schema:
|
||||
|
||||
Reference in New Issue
Block a user