Skip to content

Support multiple responses validation #2093

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

Open
mrlubos opened this issue May 29, 2025 · 0 comments
Open

Support multiple responses validation #2093

mrlubos opened this issue May 29, 2025 · 0 comments
Labels
feature 🚀 New feature or request

Comments

@mrlubos
Copy link
Member

mrlubos commented May 29, 2025

I think if an endpoint defines multiple possible responses, only one type gets validated right now. ideally, we would generate an array of schemas to parse and if any of them passes, return. Or do a response status check and test against specific schema.

EDIT: Seems one schema for the whole union is generated. It would be nice to split it into individual schemas

@mrlubos mrlubos added feature 🚀 New feature or request prioritized 🚚 This issue has been prioritized and will be worked on soon and removed prioritized 🚚 This issue has been prioritized and will be worked on soon labels May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant