Skip to content

Conversation

@emostov
Copy link
Contributor

@emostov emostov commented Jan 26, 2026

This PR updates codegen logic to allow manually specifying exact fields that we should deserialize as base64. I saw two options: we could assume all Vec<u8> fields where base64 or we could manually specify exact fields to assume are base64. Since this is the first time we have a bytes field in our API I chose the latter, but if we decide to standardize on all bytes fields being base64, we may want to generally assume in the generation code.

I also synced protos with mono

@emostov emostov changed the title Sync protos Support bytes as base64 in codegen Jan 26, 2026
}

// Verify the field type is Vec<u8>
if !is_vec_u8(&field.ty) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is safer, but might cause the codegen to silently ignore manually added items in BASE64_FIELDS. I figure if we go with the generalized approach later we can re-use this fn

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.

2 participants