Skip to content

Commit 97370fd

Browse files
author
stlc-bot
committed
fix(api): honour maxAgeMs=0 on brand retrieve, styleguide and fonts endpoints (#998)
Stainless-Generated-From: 4477f7a60e52a3267b213b91a9c0dca57a2fdaa1
1 parent d7173ff commit 97370fd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/cmd/brand.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var brandRetrieve = cli.Command{
3737
},
3838
&requestflag.Flag[int64]{
3939
Name: "max-age-ms",
40-
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 year.",
40+
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Set to 0 to always perform a hard refresh. Negative values are clamped to 0; values above 1 year (31536000000 ms) are clamped to 1 year.",
4141
BodyPath: "maxAgeMs",
4242
},
4343
&requestflag.Flag[bool]{
@@ -128,7 +128,7 @@ var brandRetrieveSimplified = cli.Command{
128128
},
129129
&requestflag.Flag[*int64]{
130130
Name: "max-age-ms",
131-
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 year.",
131+
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Set to 0 to always perform a hard refresh. Negative values are clamped to 0; values above 1 year (31536000000 ms) are clamped to 1 year.",
132132
Default: requestflag.Ptr[int64](7776000000),
133133
QueryPath: "maxAgeMs",
134134
},

pkg/cmd/web.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ var webExtractFonts = cli.Command{
180180
},
181181
&requestflag.Flag[*int64]{
182182
Name: "max-age-ms",
183-
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 year.",
183+
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Set to 0 to always perform a hard refresh. Negative values are clamped to 0; values above 1 year (31536000000 ms) are clamped to 1 year.",
184184
Default: requestflag.Ptr[int64](7776000000),
185185
QueryPath: "maxAgeMs",
186186
},
@@ -221,7 +221,7 @@ var webExtractStyleguide = cli.Command{
221221
},
222222
&requestflag.Flag[*int64]{
223223
Name: "max-age-ms",
224-
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 year.",
224+
Usage: "Maximum age in milliseconds for cached brand data before the API performs a hard refresh. Defaults to 3 months (7776000000 ms). Set to 0 to always perform a hard refresh. Negative values are clamped to 0; values above 1 year (31536000000 ms) are clamped to 1 year.",
225225
Default: requestflag.Ptr[int64](7776000000),
226226
QueryPath: "maxAgeMs",
227227
},

0 commit comments

Comments
 (0)