Adding Refinement to Validate Multiple Fields in a Schema

How do you add refinment to a Schema in order to validate two or more fields at the same time?
For example you have a Pagination metadata object where the current page number must be >= total pages.
Was this page helpful?