Skip to content

News API: news_domain_type accepts multiple values - #157

Merged
Kizy625 merged 1 commit into
mainfrom
docs/news-domain-type-multi-value
Oct 8, 2026
Merged

Kizy625 merged 1 commit into
mainfrom
docs/news-domain-type-multi-value

Conversation

@bohdan-debug

Copy link
Copy Markdown
Collaborator

A customer asked us to make news_domain_type accept several values. It already does: the spec just types it as a single enum string.

Verified live on 2026-10-08, each multi-value result equals the sum of the single-value runs:

Endpoint Request Result
POST /api/search ["Original Content", "Aggregator"] and "Original Content,Aggregator" 1,325 = 1,049 + 276
GET /api/search news_domain_type=Original Content,Aggregator 816 = 653 + 163
GET / POST /api/sources Aggregator,Republisher (string and array) 172 = 145 + 27

The change mirrors the existing NewsType schema: oneOf string or array, enum moved onto the array items, description says multiple values work. The response fields that also carry news_domain_type define their own inline type: string, so they are unaffected. mintlify openapi-check passes.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
newscatcherinc 🟢 Ready View Preview Oct 8, 2026, 9:29 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@mintlify

mintlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
newscatcherinc-docs 🟢 Ready View Preview Oct 8, 2026, 9:29 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@Kizy625
Kizy625 merged commit 0319aaf into main Oct 8, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
staging — a0b7c13e Deployed Oct 8, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants