Skip to content

Parse basic fields: identifier, field, fields #289

@rsamoilov

Description

@rsamoilov

Statically parse top-level identifier, field, and fields declarations. Map each to type: string by default. Handle the name: option for key renaming. Fields defined with a block should also produce a string entry.

identifier :uuid
field :email, name: :login   # -> "login": string
fields :first_name, :last_name
field(:full_name) { |u| ... } # -> "full_name": string

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions