-
-
Notifications
You must be signed in to change notification settings - Fork 158
Add SerializerSettings to JsonApiOptions #187
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
Add SerializerSettings to JsonApiOptions #187
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR!
Please re-submit after adjusting your editor's format settings. Should use spaces for the indent style with an indent size of 4.
} | ||
} | ||
} | ||
public class JsonApiOptions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix formatting here. There is no need to change the size of the whitespace, nor introduce line spaces between properties. It also makes diffs more difficult and creates noise when looking at file line history.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really thought I had my settings on spaces, but perhaps that is because I am used to using an editorconfig file... The extra lines where added by the CodeMaid plugin I use a lot, but I will disable that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fair. TBH I thought we had an .editorconfig :oops: thanks for mentioning it and I'll get that added.
|
||
internal IContextGraphBuilder ContextGraphBuilder { get; } = new ContextGraphBuilder(); | ||
|
||
public JsonSerializerSettings SerializerSettings { get; } = new JsonSerializerSettings() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
nit: let's move this to the line directly beneath the JsonContractResolver
since they are related. Also, I agree that we should mark the JsonContractResolver
as Obsolete
|
||
return entity; | ||
} | ||
public class JsonApiDeSerializer : IJsonApiDeSerializer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix whitespace formatting. I won't try to review this diff until it is absolutely clear what has been changed.
I made the changes, you want met to squash the commits together before it will be merged? |
LGTM, Thanks! I'll get a release out today or tomorrow. |
Closes #185
FEATURE
Open question: Should
JsonContractResolver
property be madeObsolete
in favor of the newSerializerSettings
property?