Skip to content

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

Closed
@jpickwell

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions