jupyter-scheduler icon indicating copy to clipboard operation
jupyter-scheduler copied to clipboard

Use declarative validation API for validating text fields

Open JasonWeill opened this issue 3 years ago • 0 comments

Problem

In #259 and elsewhere in the code, we apply custom, imperative validation rules to validate text inputs and generate error messages. This is more difficult to maintain.

Proposed Solution

@dlqqq in https://github.com/jupyter-server/jupyter-scheduler/issues/234#issuecomment-1298966576 recommends using Yup, Zod, or another validation library that can declare a schema and produce meaningful errors when input violates the schema.

JasonWeill avatar Nov 02 '22 00:11 JasonWeill