exports validate. support yaml object.
exports validate. support directory yaml object.