-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix default serialization #664
Conversation
The I agree with unit tests, though. |
…ft/ga4gh-tes into vsmalladi/SerializerSettings-659
My understanding is that the server is expected to only provide missing types on outputs, per the discussions associated with the removal of the requirement to provide type when submitting the task to the server (a change in 1.1), but maybe I'm recalling that discussion incorrectly. Note also that determination of type when it's missing can only be done with certain kinds of source storage locations, e.g. generic web URLs is one case where directory inputs are not possible to implement. If the default is changed to 1, then there'll be no way for the server to know it wasn't set in the first place. Making it nullable would be a possibility, but with the proposed fix the entire property will not be written in the JSON when clients retrieve the task when its value is the default (of 0) (along with all other properties that are missing values). Note that arrays that are present but empty will be written with this fix (to prevent writing them would require them to be null). |
…ft/ga4gh-tes into vsmalladi/SerializerSettings-659
I think if its not provided it should be null. |
In C# it's an enumeration. Our choices are:
|
So the JSON resturned would be still |
In the JSON it is entirely missing. In the POCO model, it is |
That seems reasonable to me. |
Closes #659