Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Field name option

In Blueprinter Legacy/V1, when a field’s serialized name differs from the source name you represent it like this:

# V1: Here's a field called "description". It pulls from "desc".
field :desc, name: :description

The LegacyOptions extension allows this to continue working.

V2 style

Since Blueprinter is a serializer, the DSL should describe the serialized result, not the source object. V2 reads much more naturally:

# V2: Here's a field called "description". It pulls from "desc".
field :description, source: :desc