Add field validation

Open
#94 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

The issue names no files, tests, or entry points; start by locating where the ingested JSON schema is turned into Form.io components. Done means the schema's uri format and stated if-then conditions are represented in the generated form, including the listed fields.

Written by the indexing model from the issue text.

Description

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

Dominant language
JavaScript
Stars
2
Forks
8
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DSACMS/codejson-generator

All issues in DSACMS/codejson-generator

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.