#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Privacy
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
How to define conditional payloads and responses in OpenAPI spec?
·
Ram
·
June 23, 2025, 5:37 p.m.
OpenAPI
software development
json schema
API specification
Summary
This blog post discusses how to define conditional payloads and responses in the OpenAPI specification, specifically focusing on the features available in OpenAPI v3.1, including techniques like oneOf, anyOf, and discriminator.
Read full post on blog.rampatra.com →
MORE POSTS LIKE THIS
Protobuf, JSON Schema, and OpenAPI
Kevin McDonald ·
Sep 22, 2026
protobuf
OpenAPI
Helping agents discover my site search with MCP
Dri ·
Aug 4, 2026
OpenAPI
software development
Pydantic AI structured outputs and evals on Bedrock
Matt Coles ·
Jul 14, 2026
AI
software development
k8s: Kubernetes v1.36: Declarative Validation Graduates to GA
Sujith Quintelier ·
May 6, 2026
OpenAPI
software development
Week Notes 26#17
Jamie Tanna ·
Apr 26, 2026
OpenAPI
personal-development
★ Building a PHP CLI for humans and AI agents with almost no hand-written code
Freek Van der Herten ·
Feb 25, 2026
PHP
OpenAPI
Discover more posts →
AUTHOR
Advertise
Sponsor diff.blog
Put your product in front of developers who read and write about their craft. One exclusive sponsor at a time.
Become a sponsor →
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google
By continuing, you agree to our
Privacy Policy
.