We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eef6a5a commit 4e121bbCopy full SHA for 4e121bb
1 file changed
google/genai/_gaos/types/basemodel.py
@@ -189,6 +189,9 @@ def validate_lax(v: Any) -> 'UnrecognizedStr':
189
core_schema.no_info_plain_validator_function(validate_lax)
190
]),
191
strict_schema=core_schema.none_schema(), # Always fails in strict mode
192
+ serialization=core_schema.plain_serializer_function_ser_schema(
193
+ lambda v: str(v)
194
+ ),
195
)
196
197
@@ -207,4 +210,7 @@ def validate_lax(v: Any) -> 'UnrecognizedInt':
207
210
208
211
209
212
213
214
+ lambda v: int(v)
215
216
0 commit comments