Skip to content

Array[File] doesn't validate correctly. #1986

Closed

Description

@jpickwell

If you have a parameter of type Array[File], validation always fails because the primitive type coercer is trying to do @coercer[val], and @coercer is ::File.

optional(:nested, type: Hash, default: {}) do
  optional :files, type: Array[File]
end

Version 1.2.5 doesn't have this issue, so 1.3.0 broke parameter type coercion.

Activity

  1. dblock commented on Feb 4, 2020

    @dblock
    Member

    Appreciate a spec + fix in a PR. Thanks.

  2. added a commit that references this issue on Mar 29, 2020
    d57740f
  3. self-assigned this
    on Mar 29, 2020
  4. added 2 commits that reference this issue on Mar 29, 2020
    2e58a1a
    f3073e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions