microsoft / kiota

OpenAPI based HTTP Client code generator
https://aka.ms/kiota/docs
MIT License
2.94k stars 205 forks source link

Python - local imports cause invalid serialization code #5637

Open baywet opened 2 weeks ago

baywet commented 2 weeks ago
kiota generate -d https://raw.githubusercontent.com/APIs-guru/openapi-directory/gh-pages/v2/specs/github.com/api.github.com/1.1.4/openapi.json -l Python

Results in

integration_test/client/models/workspace_user.py:115: error: Argument 2 to "write_object_value" of "SerializationWriter" has incompatible type "ErrorDetails | None"; expected "None"  [arg-type]
shemogumbe commented 1 day ago

The imports were added in this commit 139c9589cc8a4a995700cdbab7330ea736c4e2bf Reverted in the linked PR