Skip to content
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

[http-python-client] enhance additional properties support for python dpg model #5593

Open
tadelesh opened this issue Jan 14, 2025 · 0 comments
Assignees
Labels
emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Comments

@tadelesh
Copy link
Member

current behavior:
we treat all additional properties as raw data when serialization/deserialization, no extra typing/format info is taken into account. so, user could only use them with raw data. if user uses model/datetime/timedelta etc. type for additional properties, the serialization logic could do the serialization correctly but only with default behavior (e.g., datetime to rfc3339 format).
expected behavior:
serialization: support format etc.
deserialization: support deserialize with typing info (model type/datetime format/duration format etc).

@tadelesh tadelesh added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Jan 14, 2025
@tadelesh tadelesh self-assigned this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:python Issue for the Python client emitter: @typespec/http-client-python
Projects
None yet
Development

No branches or pull requests

1 participant