Skip to content

Commit 7a69dc6

Browse files
committed
mediumSizeUrl now required. Correctly set both thumbnail and mediumsize to the same png as we begin to offer more sizes.
1 parent dfc2d03 commit 7a69dc6

File tree

6 files changed

+25
-18
lines changed

6 files changed

+25
-18
lines changed

app/user_types.go

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

dataLayer/factory/FactoryVariation.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ func CreateVariation(v *models.Variation, cardID []byte, ds *dal.DataStore) (*ap
3030
}
3131

3232
//fullSizeUrl := helpers.MediaURL(v.Art.FullsizeImage)
33-
thumbnailSizeUrl := helpers.MediaURL(v.Art.ThumbnailImage)
33+
//thumbnailSizeUrl := helpers.MediaURL(v.Art.ThumbnailImage)
34+
mediumSizeUrl := helpers.MediaURL(v.Art.MediumsizeImage)
3435

3536
art := &app.ArtType{
3637
//FullsizeImage: &fullSizeUrl,
37-
MediumsizeImage: &thumbnailSizeUrl,
38-
ThumbnailImage: thumbnailSizeUrl,
38+
MediumsizeImage: mediumSizeUrl,
39+
ThumbnailImage: mediumSizeUrl,
3940
}
4041

4142
if v.Art.Artist != "" {

design/types_definition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var ArtType = Type("artType", func() {
2020
Format("uri")
2121
})
2222

23-
Required("thumbnailImage")
23+
Required("thumbnailImage", "mediumsizeImage")
2424
})
2525

2626
var CostType = Type("costType", func() {

manipulator

swagger/swagger.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

swagger/swagger.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ definitions:
6565
example:
6666
- Ranged
6767
items:
68-
example: Voluptas debitis debitis.
68+
example: Debitis debitis reprehenderit voluptas doloremque voluptatem et.
6969
type: string
7070
type: array
7171
strength:
@@ -181,8 +181,6 @@ definitions:
181181
description: GwentapiCategoryLinkCollection is the media type for an array of
182182
GwentapiCategoryLink (default view)
183183
example:
184-
- href: http://bodehickle.net/gardner
185-
name: Insectoid
186184
- href: http://bodehickle.net/gardner
187185
name: Insectoid
188186
items:
@@ -278,6 +276,12 @@ definitions:
278276
description: GwentapiGroupCollection is the media type for an array of GwentapiGroup
279277
(default view)
280278
example:
279+
- href: http://bogan.name/abbey
280+
name: Bronze
281+
uuid: GbmwHbkcQniDKJq6rKz-bQ
282+
- href: http://bogan.name/abbey
283+
name: Bronze
284+
uuid: GbmwHbkcQniDKJq6rKz-bQ
281285
- href: http://bogan.name/abbey
282286
name: Bronze
283287
uuid: GbmwHbkcQniDKJq6rKz-bQ
@@ -376,9 +380,6 @@ definitions:
376380
- href: http://schaden.info/lia
377381
name: Common
378382
uuid: TPCvIPOjRjO0s7Jfeo1NtA
379-
- href: http://schaden.info/lia
380-
name: Common
381-
uuid: TPCvIPOjRjO0s7Jfeo1NtA
382383
items:
383384
$ref: '#/definitions/GwentapiRarity'
384385
title: 'Mediatype identifier: application/vnd.gwentapi.rarity+json; type=collection;
@@ -618,6 +619,7 @@ definitions:
618619
type: string
619620
required:
620621
- thumbnailImage
622+
- mediumsizeImage
621623
title: artType
622624
type: object
623625
costType:

0 commit comments

Comments
 (0)