Skip to content

Conversation

zidad
Copy link
Contributor

@zidad zidad commented May 16, 2012

Added a fix and a unit test for the issue: #269

The checkin consist of a new test:
Can_Deserialize_Root_Elements_Without_Matching_Case_And_Dashes

Which will deserialze a structure like this:

<incoming-invoices>
<incoming-invoice>
...
<incoming-invoice>
</incoming-invoices>

To a List <IncomingInvoice>

zidad and others added 5 commits January 20, 2012 13:54
restsharp#269

The checkin consist of a new test:
Can_Deserialize_Root_Elements_Without_Matching_Case_And_Dashes

Which will deserialze a structure like this:
<incoming-invoices>
<incoming-invoice>
...
<incoming-invoice>
</incoming-invoices>

To a List<IncomingInvoice>
@johnsheehan
Copy link
Contributor

if existing tests pass too, this is good to pull

@zidad
Copy link
Contributor Author

zidad commented May 16, 2012

Ok thanks, they pass fine...

@zidad
Copy link
Contributor Author

zidad commented May 25, 2012

Hi John,

Do you have a time frame when this can be merged, or is there anything I can do?

@SaintGimp
Copy link

Bump - would like to see this merged.

@brendanc
Copy link

Yeah, think I just submitted a similar/same pull request. I'll withdraw mine, would love to see this get merged in.

@SaintGimp
Copy link

By the way, it looks like xml attributes have the same sort of bug which isn't addressed by this pull request. Seems like trying all the different convention mappings is something that could be extracted into a reusable piece of code, right?

@zidad
Copy link
Contributor Author

zidad commented Jun 18, 2012

@SaintGimp Sounds like a good idea... @johnsheehan I finally learned about rebasing (;0) so I if it makes it easier for you I could probably create a cleaner pull request?

Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of removing this existing test for LowercaseUnderscores, can we supplement the lowercase underscores test with an additional test for dashes? Doing so will help us ensure both deserialization approaches stay working after future changes.

@petejohanson petejohanson merged commit 322d37b into restsharp:master Jul 5, 2012
@petejohanson
Copy link
Contributor

Ok, merged, and I restored the one existing test to make sure we cover both cases, and did some minor whitespace fixes.

Thanks for the contribution!

@zidad
Copy link
Contributor Author

zidad commented Jul 6, 2012

Thanks! Any idea when this is released to a nuget package, or is there feed somewhere?

@petejohanson
Copy link
Contributor

@ayoung released a new build 103.2 today to nuget.org. You should be able to update and have the change.

@zidad
Copy link
Contributor Author

zidad commented Jul 6, 2012

Got it, thanks!

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.

5 participants