Skip to content

Conversation

@holtskinner
Copy link
Member

@holtskinner holtskinner commented Jun 16, 2025

Makes types more pythonic

Pydantic aliases can be used for initialization and are used automatically for serialization.
Added a workaround to support camelCase when setting specific attributes.

NOTE: In 0.3.0 and later, only snake_case will be supported for direct attribute access.

@holtskinner holtskinner requested a review from a team as a code owner June 16, 2025 16:09
@holtskinner holtskinner requested review from kthota-g and pwwpche and removed request for pwwpche June 16, 2025 16:09
@holtskinner holtskinner force-pushed the snake-case-field branch 2 times, most recently from 59bdfe3 to 3168e8e Compare June 16, 2025 18:18
@holtskinner holtskinner changed the title refactor: Support snake_case for all fields in in types.py feat: Support snake_case for all fields in in types.py Jun 16, 2025
@holtskinner holtskinner marked this pull request as draft June 20, 2025 14:59
@holtskinner
Copy link
Member Author

\gemini review

@holtskinner holtskinner marked this pull request as ready for review July 16, 2025 18:28
@holtskinner holtskinner requested a review from a team as a code owner July 16, 2025 18:28
@holtskinner holtskinner changed the title feat: Support snake_case for all fields in in types.py refactor!: Convert class fields in types.py to snake_case Jul 17, 2025
@holtskinner holtskinner added this to the 0.3.0 Release milestone Jul 17, 2025
@holtskinner holtskinner changed the title refactor!: Convert class fields in types.py to snake_case feat: Add snake_case support for fields in types.py Jul 21, 2025
@holtskinner holtskinner changed the title feat: Add snake_case support for fields in types.py feat: Convert fields in types.py to use snake_case Jul 21, 2025
@holtskinner holtskinner merged commit 0bb5563 into main Jul 21, 2025
8 checks passed
@holtskinner holtskinner deleted the snake-case-field branch July 21, 2025 19:28
holtskinner pushed a commit that referenced this pull request Jul 21, 2025
🤖 I have created a release *beep* *boop*
---


##
[0.2.16](v0.2.15...v0.2.16)
(2025-07-21)


### Features

* Convert fields in `types.py` to use `snake_case`
([#199](#199))
([0bb5563](0bb5563))


### Bug Fixes

* Add deprecation warning for camelCase alias
([#334](#334))
([f22b384](f22b384))
* client should not specify `taskId` if it doesn't exist
([#264](#264))
([97f1093](97f1093))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants