Skip to content

Ignore ContainsMetadata field when automapping Attachment #4789

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

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

russcam
Copy link
Contributor

@russcam russcam commented Jun 18, 2020

This commit adds [Ignore] attribute to the ContainsMetadata
field to ignore the field when automapping an Attachment.

[IgnoreDataMember] ignores the value when serializing an
instance of Attachment, but NoopPropertyVisitor does not
take into account [IgnoreDataMember] when mapping properties.

This commit adds [Ignore] attribute to the ContainsMetadata
field to ignore the field when automapping an Attachment.

[IgnoreDataMember] ignores the value when serializing an
instance of Attachment, but NoopPropertyVisitor does not
take into account [IgnoreDataMember] when mapping properties.
@russcam
Copy link
Contributor Author

russcam commented Jun 18, 2020

Opened #4781 for failing tests. Merging this in

@russcam russcam merged commit d2e9333 into master Jun 18, 2020
@russcam russcam deleted the fix/ignore-attachment-field branch June 18, 2020 23:52
github-actions bot pushed a commit that referenced this pull request Jun 18, 2020
This commit adds [Ignore] attribute to the ContainsMetadata
field to ignore the field when automapping an Attachment.

[IgnoreDataMember] ignores the value when serializing an
instance of Attachment, but NoopPropertyVisitor does not
take into account [IgnoreDataMember] when mapping properties.
github-actions bot pushed a commit that referenced this pull request Jun 18, 2020
This commit adds [Ignore] attribute to the ContainsMetadata
field to ignore the field when automapping an Attachment.

[IgnoreDataMember] ignores the value when serializing an
instance of Attachment, but NoopPropertyVisitor does not
take into account [IgnoreDataMember] when mapping properties.
russcam added a commit that referenced this pull request Jun 18, 2020
)

This commit adds [Ignore] attribute to the ContainsMetadata
field to ignore the field when automapping an Attachment.

[IgnoreDataMember] ignores the value when serializing an
instance of Attachment, but NoopPropertyVisitor does not
take into account [IgnoreDataMember] when mapping properties.

Co-authored-by: Russ Cam <russ.cam@elastic.co>
russcam added a commit that referenced this pull request Jun 18, 2020
)

This commit adds [Ignore] attribute to the ContainsMetadata
field to ignore the field when automapping an Attachment.

[IgnoreDataMember] ignores the value when serializing an
instance of Attachment, but NoopPropertyVisitor does not
take into account [IgnoreDataMember] when mapping properties.

Co-authored-by: Russ Cam <russ.cam@elastic.co>
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.

1 participant