Skip to content

Casted enum value #133

@conradfr

Description

@conradfr

Is it the intended behavior that if validate with


  defparams :get do
    optional :foo, :enum, values: ["bar", "goal"]
  end

I get back the enum value casted to an atom?

{:ok, %{foo: :bar}}

I was surprised and see no mention of it in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions