DSACMS / DSACMS/codejson-generator

Add field validation

Đang mở
#94 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
2
Fork
8
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Is your feature request related to a problem? Please describe.**
As part of validating user's responses, we would like to add field validation indicated in the property's JSON schema.

**Describe the solution you'd like**
We are able to validate for "urls". This is indicated using the `format: uri`. We would also like to support condition validation as denoted in the JSON schema through if-then keywords. Form.io already provides this functionality so it is just a matter of configuring the Form.io components based on the ingested schema.

**Describe alternatives you've considered**
We could write separate functions that perform validation upon form submission, however Form.io already provides this functionality out of the box.

**Additional context**
Helpful for fields such as `repositoryURL`, `usageType` & `exemptionText`, `maintenance` and `contractNumber`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đá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.