Closed kaedub closed 4 years ago
Hey. I see no reason for it remain private. At first I thought of myzod as very simple and tried to keep meta programming of internal schemas out of it, but if the community wants it, then I think that is fine.
If you make a PR for this and the tests pass, I will merge and make a release. Thanks for your efforts !
merged.
This has been merged but I am just waiting on your EnumType Coercion PR to make a release :) @kaedub
Overview
I want to start by saying thanks and that myzod has been my favorite JS validation library since finding it and I would like to contribute something if possible.
My proposal is that the
schema
property onOptionalType
,NullableType
,ArrayType
haveprivate
removed.Problem
Consider the following schema:
I would like to be able to do type checking on the schema so that I may filter fields by type. However, I can't access nested types without a Typescript error.
Suggested Solution
Unless there is a reason for this being private, I'd like to make a PR for this.
Thanks!