DSACMS / DSACMS/codejson-generator
Add field validation
- 主要语言
- JavaScript
- 星标
- 2
- 派生
- 8
- PR 合并指标
- 30 天内没有已合并 PR
描述
**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`
贡献指南
调研方向
该 issue 未指定文件、测试或入口点;首先定位摄取的 JSON schema 被转换为 Form.io 组件的位置。完成的标准是:schema 的 uri 格式和所述的 if-then 条件都体现在生成的表单中,包括列出的字段。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100