[wp-trac] [WordPress Trac] #53621: The `wp/v2/block-directory/search` schema is incorrect

WordPress Trac noreply at wordpress.org
Wed Jul 7 16:09:23 UTC 2021


#53621: The `wp/v2/block-directory/search` schema is incorrect
--------------------------+-----------------------
 Reporter:  johnbillion   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.9
Component:  REST API      |     Version:  5.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  rest-api
--------------------------+-----------------------

Comment (by johnbillion):

 I've got test coverage for this in my `wp-json-schemas` package that runs
 a live search and then validates the response against its JSON schema:
 https://github.com/johnbillion/wp-json-
 schemas/commit/1eeb02c23a2d80bb57c67cb4efd95997b29ca99a . I had to correct
 these three types to get the validation to pass.

 It would be good to have coverage here either via a live search or via a
 mock response from the w.org API.

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


More information about the wp-trac mailing list