WordPress custom REST API: How to validate input data by many context?

WordPress custom REST API: How to validate input data by many context?