Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

IsOptional validator allows null and undefined #150

Open
wpf500 opened this issue Jun 15, 2022 · 0 comments
Open

IsOptional validator allows null and undefined #150

wpf500 opened this issue Jun 15, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@wpf500
Copy link
Member

wpf500 commented Jun 15, 2022

The IsOptional validator allows both null and undefined but this isn't reflected in the API data models. For the most part where we have used IsOptional we just wanted to allow undefined, and we should have IsNullable for the cases where we wanted to validate null

@wpf500 wpf500 added the bug Something isn't working label Jun 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant