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

[Feature] Adds ability to change the response or request body content media type based on custom annotation properties #500

Merged
merged 15 commits into from
Mar 4, 2024

Conversation

irvinesunday
Copy link
Contributor

Fixes #405

This PR:

  • Introduces two new custom annotation properties: RequestContentTypes and ResponseContentTypes to help provide means of generating expected request body and response content media types for a given endpoint. The current default is application/json
  • Updates generation of request body and response content media types of entity sets whose entities have media streams to either generate the annotated media type from the annotated Org.OData.Core.V1.AcceptableMediaTypes or default to application/octet-stream and not generate the application/json media type.
  • Adds and updates tests to validate the above.
  • Updates release notes.

Copy link

sonarqubecloud bot commented Mar 2, 2024

Copy link
Member

@andrueastman andrueastman left a comment

Choose a reason for hiding this comment

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

👍🏼

@irvinesunday irvinesunday merged commit f251ea9 into master Mar 4, 2024
12 checks passed
@irvinesunday irvinesunday deleted the is/custom-annotations-props branch March 4, 2024 13:25
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.

Add the ability to change the request or response body content type based on an annotation
2 participants