Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Type #242

Open
bekicot opened this issue Jul 22, 2020 · 0 comments
Open

Custom Type #242

bekicot opened this issue Jul 22, 2020 · 0 comments

Comments

@bekicot
Copy link

bekicot commented Jul 22, 2020

Currently we do type validation based on predefined type

Is it possible to register a new custom type? So that we can have a custom type validation?

If it is currently not possible and something that the maintainer allows, I can do a pull request for it.

The interface that I have in mind:

 Csvlint::Validator.new(csv_file, nil, {
  fields: [ {
    name: "Cutom Type",
    constraints: {
      type: ->(value) {}
    }
  }]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant