api: simplify method #validation