Skip to content

Conversation

@russcam
Copy link
Contributor

@russcam russcam commented Feb 11, 2020

This commit fixes a bug where VerifyRepositoryResponse was attributed
with the wrong formatter type in JsonFormatterAttribute applied at the type level.
Utf8Json's formatters are strongly typed for speed at the cost of less flexibility.

Fix other cases where the incorrect formatter type is used, and introduce a
convention test to assert that types and their properties attributed with
JsonFormatterAttribute use the correct formatter type.

Fixes #4382

This commit fixes a bug where VerifyRepositoryResponse was attributed
with the wrong formatter type in JsonFormatterAttribute applied at the type level.
Utf8Json's formatters are strongly typed for speed at the cost of less flexibility.

Fix other cases where the incorrect formatter type is used, and introduce a
convention test to assert that types and their properties attributed with
JsonFormatterAttribute use the correct formatter type.

Fixes #4382
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

CodeStandard tests ++

@russcam
Copy link
Contributor Author

russcam commented Feb 12, 2020

opened #4385 to tackle failing enrich policy test, which are unrelated to this PR.

@russcam russcam merged commit 635f162 into 7.x Feb 12, 2020
@russcam russcam deleted the fix/7x/4382 branch February 12, 2020 01:58
russcam added a commit that referenced this pull request Feb 12, 2020
This commit fixes a bug where VerifyRepositoryResponse was attributed
with the wrong formatter type in JsonFormatterAttribute applied at the type level.
Utf8Json's formatters are strongly typed for speed at the cost of less flexibility.

Fix other cases where the incorrect formatter type is used, and introduce a
convention test to assert that types and their properties attributed with
JsonFormatterAttribute use the correct formatter type.

Fixes #4382

(cherry picked from commit 635f162)
@russcam
Copy link
Contributor Author

russcam commented Feb 12, 2020

ported to master ec50401

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.

3 participants