ajv-validator / ajv-validator/ajv-keywords

`transform` Addtions (WIP)

Đang mở
#66 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.