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

Upgrade to Json.NET 7.0.1 #1465

Merged
merged 4 commits into from
Jun 24, 2015
Merged

Upgrade to Json.NET 7.0.1 #1465

merged 4 commits into from
Jun 24, 2015

Conversation

gmarz
Copy link
Contributor

@gmarz gmarz commented Jun 24, 2015

This PR updates NEST to Json.NET 7.0.1 and addresses the issue described in #1462.

The problem lied in ElasticContractResolver.CreateProperties. The returned collection of properties was non-unique, causing the DefaultContractResolver in Json.NET to blow up here.

There were some recent changes to DefaultContractResolver, but I'm not exactly sure what change specifically caused this behavior and if it's a bug or not- but regardless, ElasticContractResolver.CreateProperties should still return a distinct list of properties to be safe.

@Mpdreamz
Copy link
Member

https://github.com/elastic/elasticsearch-net/blob/fix/update-jsonnet/build/NEST.nuspec#L17

We should upgrade our nuspec dependency as well and introduce allowedVersions="[7,8)" explicitly to not get bitten by this again.

https://docs.nuget.org/create/versioning

The fact that major version range is not implied is a nuget fail IMO though.

@gmarz
Copy link
Contributor Author

gmarz commented Jun 24, 2015

We should upgrade our nuspec dependency as well and introduce allowedVersions="[7,8)" explicitly to not get bitten by this again.

Agreed, just added this.

Mpdreamz added a commit that referenced this pull request Jun 24, 2015
@Mpdreamz Mpdreamz merged commit e829e93 into develop Jun 24, 2015
@Mpdreamz Mpdreamz deleted the fix/update-jsonnet branch June 24, 2015 18:53
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.

2 participants