adopted-ember-addons / adopted-ember-addons/ember-changeset-validations

Date validator request

未关闭
#204 18 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
good first issue
主要语言
JavaScript
星标
215
派生
98
PR 合并指标
30 天内没有已合并 PR

描述

This package is currently not providing a Date validator, which would be very useful for validating date-type inputs. Such a validator is already provided by `ember-validators` but is not in this project.

https://github.com/offirgolan/ember-validators/blob/v2.0.0/addon/date.js

Having it available would allow us to use changesets for date inputs with something better than
```javascript
validateFormat({ regex: /[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]/ })
```

which is currently the best, but somewhat hacky, implementation option.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。