Skip to content

Commit 2ed83fb

Browse files
author
stlc-bot
committed
fix(openapi): document exclusive news filters (#1265)
Stainless-Generated-From: df8494bdf27e144c22906c26e4acb76ca3a8bcd0
1 parent 91f5c3c commit 2ed83fb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎pkg/cmd/news.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
var newsSearch = requestflag.WithInnerFlags(cli.Command{
1818
Name: "search",
19-
Usage: "Searches live and historical company news for one company, identified in\nsearchBy by name, domain, ticker (optionally disambiguated by exchange), or\nISIN. Results can be filtered by publisher domain, publisher country, article\nlanguage, article type, and published-at date, and include stable story IDs,\nsource metadata, verified entity relevance, and cursor pagination.",
19+
Usage: "Searches live and historical company news for one company, identified in\nsearchBy by name, domain, ticker (optionally disambiguated by exchange), or\nISIN. Results can be filtered by one of publisher domain, publisher country,\narticle language, or article type, optionally combined with a published-at date\nrange, and include stable story IDs, source metadata, verified entity relevance,\nand cursor pagination.",
2020
Suggest: true,
2121
Flags: []cli.Flag{
2222
&requestflag.Flag[map[string]any]{
@@ -32,7 +32,7 @@ var newsSearch = requestflag.WithInnerFlags(cli.Command{
3232
},
3333
&requestflag.Flag[map[string]any]{
3434
Name: "filter-by",
35-
Usage: "Optional result filters.",
35+
Usage: "Optional result filters. Use at most one of sourceDomain, sourceCountry, articleLanguage, or articleType. A date range may accompany that category; date.from must not exceed date.to.",
3636
BodyPath: "filterBy",
3737
},
3838
&requestflag.Flag[int64]{
@@ -81,7 +81,7 @@ var newsSearch = requestflag.WithInnerFlags(cli.Command{
8181
},
8282
&requestflag.InnerFlag[map[string]any]{
8383
Name: "filter-by.date",
84-
Usage: "Published-at window in epoch milliseconds.",
84+
Usage: "Published-at window in epoch milliseconds. from must be before or equal to to.",
8585
InnerField: "date",
8686
},
8787
&requestflag.InnerFlag[[]string]{

0 commit comments

Comments
 (0)