Actually, thinking about it I'm not sure that this function is that useful. If we have endpoints that aren't paged, then I think this is better formulated as middleware that generically validates only certain parameters exist. And even then, I'm not sure that should be an error as opposed to us just ignoring parameters that don't matter.

After all, currently you can pass all kinds of parameters to an endpoint and we don't error out. Given that nobody has complained about that, I'm not sure this adds much value.