Post API tax_relation field doesn’t work

So it turns out this was completely changed in 5.7 and the documentation has, unhelpfully, not been updated to reflect that. More info in the Git commit.

Instead of:

/wp-json/wp/v2/posts?tags=22,23&tax_relation=AND

This URL works:

/wp-json/wp/v2/posts?tags[terms]=22,23&tags[operator]=AND