[wp-trac] [WordPress Trac] #39054: REST API: Improve error messages for number relational validation

WordPress Trac noreply at wordpress.org
Sun Dec 4 17:22:37 UTC 2016


#39054: REST API: Improve error messages for number relational validation
----------------------------------------+-----------------------
 Reporter:  jblz                        |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  4.7.1
Component:  REST API                    |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:  rest-api
----------------------------------------+-----------------------
Changes (by jnylen0):

 * keywords:   => has-patch needs-unit-tests
 * type:  enhancement => defect (bug)
 * milestone:  Awaiting Review => 4.7.1


Comment:

 Patch looks good to me, thanks @jblz!  Setting to "bug" because this
 language is mathematically incorrect.

 It would be good to get some more tests for this behavior, it's a little
 concerning that only one random test case was affected.  Any extra tests
 could probably go in these files:

 tests/phpunit/tests/rest-api/rest-schema-sanitization.php
 tests/phpunit/tests/rest-api/rest-schema-validation.php

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


More information about the wp-trac mailing list