From a0b7c13ebf34a738bd803b4940b31ba9dda5034d Mon Sep 17 00:00:00 2001 From: Bohdan Denysiuk Date: Thu, 8 Oct 2026 12:28:38 +0300 Subject: [PATCH] News API: news_domain_type accepts multiple values The spec typed news_domain_type as a single enum string, but the API already accepts a comma-separated string or an array on /search and /sources (GET and POST). Mirror the NewsType schema: oneOf string | array, enum on items. Co-Authored-By: Claude Opus 5.5 --- news-api/api-reference/news-api-v3.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/news-api/api-reference/news-api-v3.yml b/news-api/api-reference/news-api-v3.yml index bbaa6ec..4a95287 100644 --- a/news-api/api-reference/news-api-v3.yml +++ b/news-api/api-reference/news-api-v3.yml @@ -3769,15 +3769,21 @@ components: default: day NewsDomainType: - type: string - enum: - - Original Content - - Aggregator - - Press Releases - - Republisher - - Other - description: | - Filters results based on the news domain type. Possible values are: + oneOf: + - type: string + example: "Original Content,Aggregator" + - type: array + items: + type: string + enum: + - Original Content + - Aggregator + - Press Releases + - Republisher + - Other + example: ["Original Content", "Aggregator"] + description: | + Filters results based on the news domain type. Multiple types can be specified using a comma-separated string or an array of strings. Possible values are: - `Original Content`: Sources that produce their own content. - `Aggregator`: Sources that collect content from various other sources. - `Press Releases`: Sources primarily publishing press releases.