Add fields to read json metadata (#2652)

This commit is contained in:
Javier Adriel
2023-02-10 13:48:47 -06:00
committed by GitHub
parent d4031ee7b5
commit a6637f18c8
10 changed files with 773 additions and 35 deletions

View File

@@ -4056,7 +4056,7 @@ func init() {
}
}
},
"/releases/": {
"/releases": {
"get": {
"tags": [
"release"
@@ -4076,6 +4076,18 @@ func init() {
"description": "Current Release",
"name": "current",
"in": "query"
},
{
"type": "string",
"description": "search content",
"name": "search",
"in": "query"
},
{
"type": "string",
"description": "filter releases",
"name": "filter",
"in": "query"
}
],
"responses": {
@@ -7424,6 +7436,65 @@ func init() {
}
}
},
"releaseAuthor": {
"type": "object",
"properties": {
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"gravatar_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"id": {
"type": "integer"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"receivedEvents_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"starred_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"releaseInfo": {
"type": "object",
"properties": {
@@ -7433,8 +7504,8 @@ func init() {
"contextContent": {
"type": "string"
},
"name": {
"type": "string"
"metadata": {
"$ref": "#/definitions/releaseMetadata"
},
"newFeaturesContent": {
"type": "string"
@@ -7444,9 +7515,6 @@ func init() {
},
"securityContent": {
"type": "string"
},
"tag": {
"type": "string"
}
}
},
@@ -7461,6 +7529,59 @@ func init() {
}
}
},
"releaseMetadata": {
"type": "object",
"properties": {
"assets_url": {
"type": "string"
},
"author": {
"$ref": "#/definitions/releaseAuthor"
},
"created_at": {
"type": "string"
},
"draft": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"prerelease": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
"tag_name": {
"type": "string"
},
"tarball_url": {
"type": "string"
},
"target_commitish": {
"type": "string"
},
"upload_url": {
"type": "string"
},
"url": {
"type": "string"
},
"zipball_url": {
"type": "string"
}
}
},
"remoteBucket": {
"type": "object",
"required": [
@@ -12628,7 +12749,7 @@ func init() {
}
}
},
"/releases/": {
"/releases": {
"get": {
"tags": [
"release"
@@ -12648,6 +12769,18 @@ func init() {
"description": "Current Release",
"name": "current",
"in": "query"
},
{
"type": "string",
"description": "search content",
"name": "search",
"in": "query"
},
{
"type": "string",
"description": "filter releases",
"name": "filter",
"in": "query"
}
],
"responses": {
@@ -16122,6 +16255,65 @@ func init() {
}
}
},
"releaseAuthor": {
"type": "object",
"properties": {
"avatar_url": {
"type": "string"
},
"events_url": {
"type": "string"
},
"followers_url": {
"type": "string"
},
"following_url": {
"type": "string"
},
"gists_url": {
"type": "string"
},
"gravatar_id": {
"type": "string"
},
"html_url": {
"type": "string"
},
"id": {
"type": "integer"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organizations_url": {
"type": "string"
},
"receivedEvents_url": {
"type": "string"
},
"repos_url": {
"type": "string"
},
"site_admin": {
"type": "boolean"
},
"starred_url": {
"type": "string"
},
"subscriptions_url": {
"type": "string"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"releaseInfo": {
"type": "object",
"properties": {
@@ -16131,8 +16323,8 @@ func init() {
"contextContent": {
"type": "string"
},
"name": {
"type": "string"
"metadata": {
"$ref": "#/definitions/releaseMetadata"
},
"newFeaturesContent": {
"type": "string"
@@ -16142,9 +16334,6 @@ func init() {
},
"securityContent": {
"type": "string"
},
"tag": {
"type": "string"
}
}
},
@@ -16159,6 +16348,59 @@ func init() {
}
}
},
"releaseMetadata": {
"type": "object",
"properties": {
"assets_url": {
"type": "string"
},
"author": {
"$ref": "#/definitions/releaseAuthor"
},
"created_at": {
"type": "string"
},
"draft": {
"type": "boolean"
},
"html_url": {
"type": "string"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"node_id": {
"type": "string"
},
"prerelease": {
"type": "boolean"
},
"published_at": {
"type": "string"
},
"tag_name": {
"type": "string"
},
"tarball_url": {
"type": "string"
},
"target_commitish": {
"type": "string"
},
"upload_url": {
"type": "string"
},
"url": {
"type": "string"
},
"zipball_url": {
"type": "string"
}
}
},
"remoteBucket": {
"type": "object",
"required": [