8000 chore: http snippets were filtering out valid values by dsinghvi · Pull Request #2974 · fern-api/fern-platform · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: http snippets were filtering out valid values #2974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

dsinghvi
Copy link
Member

Short description of the changes made

Customers reported several parts of their HTTP example being filtered out from the API reference for non curl snippets.

What was the motivation & context behind this PR?

Customer reports.

How has this PR been tested?

Unit tested

@dsinghvi dsinghvi marked this pull request as ready for review June 16, 2025 23:17
Copy link
vercel bot commented Jun 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dev.ferndocs.com ✅ Ready (Inspect) Visit Preview Jun 16, 2025 11:22pm
fern-dashboard ✅ Ready (Inspect) Visit Preview Jun 16, 2025 11:22pm
fern-dashboard-dev ✅ Ready (Inspect) Visit Preview Jun 16, 2025 11:22pm
ferndocs.com ✅ Ready (Inspect) Visit Preview Jun 16, 2025 11:22pm
preview.ferndocs.com ✅ Ready (Inspect) Visit Preview Jun 16, 2025 11:22pm
prod-assets.ferndocs.com ✅ Ready (Inspect) Visit Preview Jun 16, 2025 11:22pm
prod.ferndocs.com ✅ Ready (Inspect) Visit Preview Jun 16, 2025 11:22pm

8000
}
return true;
// For objects, only filter out empty objects without a value property
return Object.keys(valueObj).length > 0;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core change

@dsinghvi dsinghvi merged commit 5cf655f into app Jun 17, 2025
15 checks passed
@dsinghvi dsinghvi deleted the dsinghvi/fix-http-snippets branch June 17, 2025 01:12
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.

1 participant
0