schema

actsasgeek 2017-05-05T17:04:18.665345Z

is there a way or pattern to indicate that two values are related or constrained? I have a map and there’s validation for that, but I would also like to say “start” (a date) is before “stop” (a date). I can’t quite piece together what to do.

actsasgeek 2017-05-05T20:21:40.420011Z

one other question, for RESTful APIs, it’s often the case that all the keys are required for a POST but only some are required for a PUT, does anyone have a design pattern for that?