-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support for Json (de)serialization #35
Conversation
The code still needs a lot of work. It has no support yet for: - additional data - enums - collections - events It does run the first unit test however so the foundation seems to be good.
Due to implemnation of getChildNode, getting an object based on a discriminator works. Enums with a text value are supported (but not generically) Durations are supported.
Additional data is supported plus duration, date and time. (de)Serilization is by no means complete but good enough to start generating code. We will generate code for a simple client that gets version informationof an app.
As it looks like the lower case version is used everywhere including in other languages than Dart.
Configuration generics
Previously we had to manually copy the version.dart file in our .pub-cache folder.
@ricardo. I tried to not ignore the verion.dart file in .gitignore But it ignored it anyway. I know this is not a good solution that I will have to fix later.
Code seems to work with correct version.dart file.
Solved compilation error. Oddly enough the code seemed to work with this error.
…n subclasses of ApiException get lost
Switched from StringBuffer to using Uint8Buffer as it supports adding (binary) data.
In the process I had to make the return value of getValue(), nullable.
I know that the version.dart file is generated and not committed, but if I want to hand a generated SDK to a client they do not have the generated file and run into a problem. I will have to discuss this with Ricardo.
I know that the version.dart file is generated and not committed, but if I want to hand a generated SDK to a client they do not have the generated file and run into a problem. I will have to discuss this with Ricardo.
packages/kiota_serialization_form/lib/src/form_serialization_writer.dart
Outdated
Show resolved
Hide resolved
packages/kiota_serialization_json/lib/src/json_serialization_writer.dart
Outdated
Show resolved
Hide resolved
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.
Looks really good. I think this is ready for merging soon!
packages/kiota_serialization_form/lib/src/form_serialization_writer.dart
Show resolved
Hide resolved
@joanne-ter-maat @Kees-Schotanus can one of you add yourselves to the |
… in writeAdditionalData
Instead of checking just the header, the complete serialized object is now verified.
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.
Looking good! Just fix the conflicts and this should be ready. Great work!
No description provided.