Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Issue using lenient scope with DataMember Name and SnakeCase. #519

Merged
mythz merged 1 commit into master from type-accessor-missed-with-lenient-scope
Feb 9, 2019

Conversation

@Layoric
Copy link
Member

@Layoric Layoric commented Feb 8, 2019

Hey @mythz ,

Spotted an issue with TypeAccessorUtils.Get (i think, see failing test) where if a JsConfig scope is set to lenient a datamember name of snake case will be missed. Previously this would work on 5.0.2 and I think 5.1 .

I tried a fix but this looks like a pretty hot path that was refactored for performance gains, I can't see another way without testing both original and lenient property names which would require an additional string allocation and potential double up on the binary search.

Thoughts?

@mythz mythz merged commit f0c45f1 into master Feb 9, 2019
@mythz mythz deleted the type-accessor-missed-with-lenient-scope branch February 9, 2019 05:47
Copy link
Member

mythz commented Feb 9, 2019

ok should be resolved with this commit. Change is available from v5.4.1 that's now on MyGet.

Thanks for the failing test Darren 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

AltStyle によって変換されたページ (->オリジナル) /