Skip to content

Commit

Permalink
feat: align the padding types in encode/decode functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice committed Sep 11, 2024
1 parent cbd566c commit a6db9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/src/schema.zig.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub const Host = struct {
pub fn __decodeBase64Fields(self: *<%- zigTypeName(schema.name) %>) !*<%- zigTypeName(schema.name) %> {
<% if (schema.properties.some(p => { return p.type === 'buffer' })) { -%>
var b64dec = std.base64.standard_no_pad.Decoder;
var b64dec = std.base64.standard.Decoder;
<% } %>
<% schema.properties.forEach(p => { -%>
<% if (p.$ref && !p.$ref.enum) { %>
Expand Down

0 comments on commit a6db9b4

Please sign in to comment.