id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 47906,REST API validation schema should support regular expressions for strings.,manzoorwani.jk,,"Currently, the default validation schema ([https://core.trac.wordpress.org/browser/tags/5.2/src/wp-includes/rest-api.php#L1200 for strings]) is limited to `type`, `enum` and `format` (date-time, email & ip). It would be useful to have RegEx support out of the box. So, instead of just {{{#!php WP_REST_Server::CREATABLE, 'callback' => 'some_callback', 'args' => array( 'id' => array( 'type' => 'string', 'required' => true, 'matches' => '/\A[a-z0-9_]{1,32}\Z/i', ), ), ) }}} ",enhancement,closed,normal,,REST API,,normal,duplicate,,,rest-api