Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 3699287

Browse files
committed
Add image proto
1 parent 98e6490 commit 3699287

15 files changed

+1218
-142
lines changed

api/achievements.pb.go

Lines changed: 122 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/achievements.swagger.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@
226226
"type": "integer",
227227
"format": "int32",
228228
"title": "レスポンスのみ。プロフィールを非公開にしているメンバーの数"
229+
},
230+
"image": {
231+
"$ref": "#/definitions/typeImage"
229232
}
230233
}
231234
},
@@ -352,13 +355,50 @@
352355
},
353356
"authority": {
354357
"$ref": "#/definitions/prolab_accountsAuthority"
358+
},
359+
"icon": {
360+
"$ref": "#/definitions/typeImage"
355361
}
356362
}
357363
},
358364
"protobufEmpty": {
359365
"type": "object",
360366
"description": "service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
361367
"title": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:"
368+
},
369+
"typeImage": {
370+
"type": "object",
371+
"properties": {
372+
"url": {
373+
"type": "string",
374+
"title": "オリジナル画像のURL"
375+
},
376+
"optimized_images": {
377+
"type": "array",
378+
"items": {
379+
"$ref": "#/definitions/typeOptimizedImage"
380+
}
381+
}
382+
}
383+
},
384+
"typeOptimizedImage": {
385+
"type": "object",
386+
"properties": {
387+
"width": {
388+
"type": "integer",
389+
"format": "int64"
390+
},
391+
"height": {
392+
"type": "integer",
393+
"format": "int64"
394+
},
395+
"mime_type": {
396+
"type": "string"
397+
},
398+
"url": {
399+
"type": "string"
400+
}
401+
}
362402
}
363403
}
364404
}

api/achievements.validator.pb.go

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/contribution_collections.swagger.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,43 @@
180180
},
181181
"authority": {
182182
"$ref": "#/definitions/prolab_accountsAuthority"
183+
},
184+
"icon": {
185+
"$ref": "#/definitions/typeImage"
186+
}
187+
}
188+
},
189+
"typeImage": {
190+
"type": "object",
191+
"properties": {
192+
"url": {
193+
"type": "string",
194+
"title": "オリジナル画像のURL"
195+
},
196+
"optimized_images": {
197+
"type": "array",
198+
"items": {
199+
"$ref": "#/definitions/typeOptimizedImage"
200+
}
201+
}
202+
}
203+
},
204+
"typeOptimizedImage": {
205+
"type": "object",
206+
"properties": {
207+
"width": {
208+
"type": "integer",
209+
"format": "int64"
210+
},
211+
"height": {
212+
"type": "integer",
213+
"format": "int64"
214+
},
215+
"mime_type": {
216+
"type": "string"
217+
},
218+
"url": {
219+
"type": "string"
183220
}
184221
}
185222
}

0 commit comments

Comments
 (0)