Skip to content

Commit 06afad3

Browse files
author
stlc-bot
committed
fix(news): return extended descriptions for index search (#2019)
Stainless-Generated-From: dc7cc5d0dacb2793052cc069f912457fea2d08e7
1 parent d80ec28 commit 06afad3

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎lib/context_dev/models/news_search_response.rb‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ class Data < ContextDev::Internal::Type::BaseModel
7373
required :authors, ContextDev::Internal::Type::ArrayOf[String]
7474

7575
# @!attribute description
76-
# Short summary or excerpt of the article, when the publisher provides one.
76+
# Article summary or excerpt. Natural-language search descriptions include
77+
# matching passages and are capped at 2,000 characters.
7778
#
7879
# @return [String, nil]
7980
required :description, String, nil?: true
@@ -145,7 +146,7 @@ class Data < ContextDev::Internal::Type::BaseModel
145146
#
146147
# @param authors [Array<String>] Bylined authors. Empty when no byline is available.
147148
#
148-
# @param description [String, nil] Short summary or excerpt of the article, when the publisher provides one.
149+
# @param description [String, nil] Article summary or excerpt. Natural-language search descriptions include matchin
149150
#
150151
# @param image_url [String, nil] Lead image for the article, when one is available.
151152
#

‎rbi/context_dev/models/news_search_response.rbi‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ module ContextDev
114114
sig { returns(T::Array[String]) }
115115
attr_accessor :authors
116116

117-
# Short summary or excerpt of the article, when the publisher provides one.
117+
# Article summary or excerpt. Natural-language search descriptions include
118+
# matching passages and are capped at 2,000 characters.
118119
sig { returns(T.nilable(String)) }
119120
attr_accessor :description
120121

@@ -210,7 +211,8 @@ module ContextDev
210211
id:,
211212
# Bylined authors. Empty when no byline is available.
212213
authors:,
213-
# Short summary or excerpt of the article, when the publisher provides one.
214+
# Article summary or excerpt. Natural-language search descriptions include
215+
# matching passages and are capped at 2,000 characters.
214216
description:,
215217
# Lead image for the article, when one is available.
216218
image_url:,

0 commit comments

Comments
 (0)