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

Align default JsonSerializerOptions with defaults of SystemTextJsonOutputFormatter #49

Closed
jasonmitchell opened this issue Feb 24, 2021 · 1 comment · Fixed by #66
Closed
Milestone

Comments

@jasonmitchell
Copy link
Owner

Currently if no JsonSerializerOptions are passed when instantiating HalJsonOutputFormatter, a new instance is created with mostly default settings. The defaults should align with the defaults for SystemTextJsonOutputFormatter to avoid surprises when switching between application\json and application\hal+json.

In particular, the defaults for SystemTextJsonOutputFormatter will use a camel case naming policy while HalJsonOutputFormatter does not. The screenshot below shows the defaults for SystemTextJsonOutputFormatter.

Screenshot 2021-02-24 at 21 11 25

@jasonmitchell
Copy link
Owner Author

Is switching to camel case property naming a breaking change? If the client were a javascript application then this change could cause breakages.

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 a pull request may close this issue.

1 participant