A bunch of refactoring to set us up for body validations—and adds a single check, if you use empty $args with no path but have no arguments defined on the field.
This doesn't use the visitor stuff because we're interested in the opposite info—where's the data coming from, not where is it going to. Left a bunch of TODOs where we should add more validations.
A bunch of refactoring to set us up for body validations—and adds a single check, if you use empty
$args
with no path but have no arguments defined on the field.This doesn't use the visitor stuff because we're interested in the opposite info—where's the data coming from, not where is it going to. Left a bunch of TODOs where we should add more validations.