Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Oct 29, 2025

Fix: Correct pydantic version range (bytes fields are broken with pydantic<=2.8).

The ser_json_bytes, val_json_bytes we rely on isn't introduced till 2.9.

In old versions B64 encoded bytes fields are getting ascii decoded.

  • Users will see different formats of bytes depending on pydantic version.
  • The api fails when you send back badly coded bytes (inline_blob, thought_signature).

It's possible to fix it to mostly work with older versions, but definitely not trivial to get identical behavior.

@copybara-service copybara-service bot changed the title Fix: Correct pydantic version range (bytes fields with pydantic<=2.8). Fix: Correct pydantic version range (bytes fields are broken with pydantic<=2.8). Oct 29, 2025
…antic<=2.8).

The ser_json_bytes, val_json_bytes we rely on isn't introduced till 2.9.

In old versions B64 encoded bytes fields are getting ascii decoded.
- Users will see different formats of bytes depending on pydantic version.
- The api fails when you send back badly coded bytes (inline_blob, thought_signature).

It's possible to fix it to mostly work with older versions, but definitely not trivial to get **identical** behavior.

PiperOrigin-RevId: 825591037
@copybara-service copybara-service bot merged commit d24cb56 into main Oct 29, 2025
@copybara-service copybara-service bot deleted the copybara/825264775 branch October 29, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant