Closed grk closed 3 years ago
Can't resist providing a Q solution here. @mbj how is morpher-qlang going?
{ one: .String, foo: [.String] }
@blambeau No OSS time, sorry :(
I left a related comment at https://github.com/mbj/morpher/issues/10#issuecomment-38174627
I'm closing this as I'm unlikely to put up examples any time soon.
As discussed on twitter, here's what I'd like to see an example for:
Given a hash
I'd like to validate, without transforming (I need the hash as output anyway) that keys "one" and "two" are present, no other keys are present, and that for key "one", only string values are allowed, and for the key "foo" only an array of strings is allowed.
thanks :)