Folkwise-io / Folkwise-io/DevCollective.io

Config data validation and coercion using Yup

Open
#53 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
49
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Currently, we are not running any validation on the data received from configs except simple presence/absence of the value. See screenshot.

![image](https://user-images.githubusercontent.com/4856944/123521148-d4402c00-d682-11eb-990e-5ad216925ce7.png)

We are also simply converting the data from string to number in a few places. See screenshot.

![image](https://user-images.githubusercontent.com/4856944/123521155-f5a11800-d682-11eb-9b3c-508664b88e1b.png)

Instead of these methods, use Yup to validate and convert data in the configProvider.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.