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

fix: mixed up logic around response mediatype addition/removal #328

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

slinstaedt
Copy link
Contributor

Adding a response mediatype is a non-breaking change, as long as pre-existing ones are still compatible. Clients still can requests all existing mediatype via Accept header as they have done before.

Removing an existing mediatype on the over hand is a breaking change, because existing client's requesting this response representation (again via Accept header) will probably get a 406 Not Acceptable.

@joschi joschi added the bug label Feb 28, 2022
Copy link
Contributor

@joschi joschi left a comment

Choose a reason for hiding this comment

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

@slinstaedt Thanks for your contribution!

@joschi joschi merged commit 8d804d4 into OpenAPITools:master Feb 28, 2022
@joschi joschi added this to the 2.1.0 milestone Feb 28, 2022
@slinstaedt
Copy link
Contributor Author

You are welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants