Description
Investigate approaches for adding field validation from react-hook-form.
Motivation
react-hook-form is the chosen library for form generation, so it shall consume a filtered task schema to build a complete form for a selected task. Form libraries generally come with their own strategies to validate fields out-of-the-box, and react-hook-form is no different.
react-hook-form uses resolvers to extend form validation straight from a schema. However, there are some requirements to achieve the proposed layered validation, so it is necessary to investigate the best way to achieve that.
Proposed Implementation
No response
Definition of Done
Description
Investigate approaches for adding field validation from
react-hook-form.Motivation
react-hook-formis the chosen library for form generation, so it shall consume a filtered task schema to build a complete form for a selected task. Form libraries generally come with their own strategies to validate fields out-of-the-box, andreact-hook-formis no different.react-hook-formuses resolvers to extend form validation straight from a schema. However, there are some requirements to achieve the proposed layered validation, so it is necessary to investigate the best way to achieve that.Proposed Implementation
No response
Definition of Done