Skip to content

Commit

Permalink
values_writer/writer: add support for arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
yosiat committed Nov 2, 2024
1 parent feb6b6f commit 1e4a23a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ def write(writer, attribute, value)
return
end

# TODO: validate against arrays
if attribute.type.respond_to?(:subtype)
# TODO: test this.
writer.push_value(attribute.type.deserialize(value), key)
return
end

written = case attribute.type.type
when :string, :text, :uuid
@string_writer.write(value, writer, key)
Expand Down

0 comments on commit 1e4a23a

Please sign in to comment.