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

Attribute SuggestBucket for serialization #3763

Merged
merged 1 commit into from
May 28, 2019
Merged

Conversation

russcam
Copy link
Contributor

@russcam russcam commented May 23, 2019

This commit adds JsonProperty attributes to SuggestBucket to ensure
that properties are correctly serialized when a DefaultFieldNameInferrer delegate is passed.

These are required because the concrete SuggestBucket is not passed and serialized as the
ISuggestBucket interface in the VerbatimDictionaryKeysJsonConverter WriteJson method.

Fixes issue found by https://discuss.elastic.co/t/nest-suggester-errors/179634/5

This commit adds JsonProperty attributes to SuggestBucket to ensure
that properties are correctly serialized when a DefaultFieldNameInferrer delegate is passed.

These are required because the concrete SuggestBucket is not passed and serialized as the
ISuggestBucket interface in the VerbatimDictionaryKeysJsonConverter WriteJson method.
@codebrain codebrain merged commit e736c06 into 6.x May 28, 2019
codebrain added a commit that referenced this pull request May 30, 2019
@codebrain
Copy link
Contributor

Ported to 7.x

@Mpdreamz Mpdreamz deleted the fix/discuss-179634 branch June 17, 2019 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants