Closed Acurisu closed 1 month ago
Thanks for opening this @Acurisu
If we were to include this change, it would however not trigger a release. Any chance you can include/modify commits to follow the conventions here https://github.com/microsoft/kiota-python/blob/main/CONTRIBUTING.md#commit-message-format
Thanks for opening this @Acurisu
If we were to include this change, it would however not trigger a release. Any chance you can include/modify commits to follow the conventions here https://github.com/microsoft/kiota-python/blob/main/CONTRIBUTING.md#commit-message-format
Yes of course. Sorry, thought I opened this PR as a draft.
Done. I hope this works out.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Overview
We currently have two issues:
None
inside lists.None
to'null'
when there is no key. Simply fixing issue 1 would result in['null', 'null']
instead of[null, null]
.The first issue arises when fetching, for example, all graph site pages of a site and attempting to serialize them. A specific case involves expanding
canvasLayout
and receiving a page without acanvasLayout
, which results inpinnedItems
containing[None, None, None]
.Although whether this response is correct is another question, the serialization should not raise an exception in this scenario but should handle it appropriately.
Testing Instructions
I have added relevant tests. Simply run
pytest
to verify the fix. Running the same tests without my changes will result in an exception.