ajv-validator / ajv-validator/ajv-keywords
`transform` Addtions (WIP)
- Ngôn ngữ chính
- TypeScript
- Star
- 257
- Fork
- 51
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Just jotting down notes for after https://github.com/epoberezkin/ajv-keywords/pull/64 is merged
- [ ] Allow options, similar to `dynamicDefaults`
- [ ] `toEnumCase` have option to ignore certain char when determining uniqueness ie strip out `,` and `-`
- [ ] replace string or regex
- [ ] strip html tags w/ options (alias of replace w/ defaults)
- [ ] review idea of having addons for more complex/custom transforms
- [ ] xss
- [ ] leftPad/rightPad/regexPad/patternCoerce string. ie `1:45` -> `01:45:00.000`
- [ ] floor/ceil number
**Options: (WIP)**
```json
{
"type":"object",
"transforms":{
"$defaults":{
},
"name":{
"toEnumCase":{"ignorePattern":"[\.]", "ignore":[",","-"]}
},
"time":{
}
}
}
```
Ref: https://github.com/epoberezkin/ajv-keywords/pull/64
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.