refactor: Reduce zb binary size (#1783)

Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
Alexei Dodon
2023-09-13 10:28:14 +03:00
committed by GitHub
parent 98ab43f6ef
commit 48bf7f69f8
17 changed files with 243 additions and 152 deletions
+8 -8
View File
@@ -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"
+8 -8
View File
@@ -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"
+7 -7
View File
@@ -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: