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

Enforce that all properties have a Json attribute #1538

Merged
merged 1 commit into from
Feb 22, 2019

Conversation

ob-stripe
Copy link
Contributor

r? @remi-stripe

This PR adds a wholesome test that checks that all properties on entities and options classes have either a [JsonProperty("...")] or [JsonIgnore] attribute.

I also plan on adding a second test to ensure that properties with types that require a custom converter do declare and use the correct converter (e.g. DateTime properties should be annotated with [JsonConverter(typeof(DateTimeConverter))], but it's going to be a little more convoluted, so I'll do that in a followup PR.

@remi-stripe remi-stripe assigned ob-stripe and unassigned remi-stripe Feb 22, 2019
@ob-stripe ob-stripe merged commit ead7348 into integration-v23 Feb 22, 2019
@ob-stripe ob-stripe deleted the ob-wholesome-test-json branch February 22, 2019 10:28
@ob-stripe ob-stripe mentioned this pull request Feb 22, 2019
52 tasks
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