[wp-trac] [WordPress Trac] #44949: Add support for JSON Schema string pattern to REST API

WordPress Trac noreply at wordpress.org
Sat Sep 15 15:13:19 UTC 2018


#44949: Add support for JSON Schema string pattern to REST API
----------------------------------------+------------------------------
 Reporter:  jason_the_adams             |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  REST API                    |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by jason_the_adams):

 Thanks, @TimothyBlynJacobs

 I couldn't find anywhere in the spec that explicitly said the delimiters
 should be omitted from the pattern, but it does show the pattern without
 them in the json-schema site. That said, I agree that it's the way to go.
 I don't think we'll need any flags added to the regex, do you? If
 necessary, the user can always add things via modifiers such as `(?i)`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44949#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list