-
Notifications
You must be signed in to change notification settings - Fork 370
fix for 700: changed ObjectSerializer to remove $id and $ref unless there is a circular ref #920
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
Conversation
…ere is a circular ref
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to change this test and ShouldSerializeDelegates to verify the result similar to what you did in ShouldSerialize. All it does now is verify that there is no exception, not that the result is correct ;-)
|
Overall LGTM, but I think we should improve the two tests I mentioned if we are in this code. |
|
Very good point. I'll add that shortly.
|
|
@glennblock the serialization of The serialization of the |
|
Ugh... there's also a problem with asserting the I think we'll have to leave these tests as they are, but I've refactored them to 3A's, instead of using the |
|
Ultimately, we're not trying to assert the serialization of all object types in this test class, but there are specific cases for which we originally had errors, i.e. the methods of |
|
OK, sounds good. |
fix for 700: changed ObjectSerializer to remove $id and $ref unless there is a circular ref
fixes #700