Skip to content
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

Multiple responses for same code in openapi #138

Merged
merged 1 commit into from Apr 2, 2024

Conversation

romanmatyus
Copy link
Contributor

No description provided.

return [
new JsonOutput(200, '{"type": "object"}'),
new JsonOutput(200, '{"type": "string"}'),
];
Copy link
Collaborator

Choose a reason for hiding this comment

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

What if I'll add 200 RedirectOutput? I know it is not correct but it is possible. Maybe we should collect all outputs and group then by code and then if there are more than one output for code, we should use oneOf key in schema

@lulco lulco merged commit a581bc7 into tomaj:master Apr 2, 2024
15 checks passed
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.

None yet

2 participants