Validating Two Schemas for Split String
Is it possible to compose two schema in a way that I can take a string, validate that the first half meets one schema and the last half meets another? I guess I basically want to split the string in two and check they both meet their respective definitions. I'd put it in one definition but I need to be able to use them separately too...
e.g. for "foo_ball" something like
I'm trying to declare validation for a custom identifier type that has 2 components to it.
e.g. for "foo_ball" something like
S.string.pipe(S.length(3)) + S.literal("_") + S.string.pipe(S.length(4))I'm trying to declare validation for a custom identifier type that has 2 components to it.
