Skip to content

Commit 82a1bd1

Browse files
fix(patch): manually edit MockupTemplate.background_color type to match real API response; closes #31 (#33)
1 parent 9c86ec9 commit 82a1bd1

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.1.3-beta] - 2025-07-24
8+
9+
- Manually edit MockupTemplate.background_color type to match real API response; closes #31
10+
711
## [2.1.2-beta] - 2025-07-24
812

913
- Updated to the latest OpenAPI spec (Jul 2025).

openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4063,7 +4063,7 @@
40634063
"example": null
40644064
},
40654065
"background_color": {
4066-
"type": "integer",
4066+
"type": "string",
40674067
"description": "HEX color code that should be used as a background color of `image_url`.",
40684068
"nullable": true,
40694069
"example": null

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "printful-sdk-js-v2",
3-
"version": "2.1.2-beta",
3+
"version": "2.1.3-beta",
44
"description": "Printful SDK for Node.js / TypeScript. A wrapper for the Printful REST API (v2)",
55
"author": "Spencer Lepine <spencer.sayhello@gmail.com>",
66
"license": "MIT",

src/models/MockupTemplates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type MockupTemplates = {
2929
/**
3030
* HEX color code that should be used as a background color of `image_url`.
3131
*/
32-
background_color: number | null;
32+
background_color: string | null;
3333
/**
3434
* Width of the whole template in pixels.
3535
*/

0 commit comments

Comments
 (0)