Make WordPress Core


Ignore:
Timestamp:
10/01/2020 02:47:08 AM (16 months ago)
Author:
TimothyBlynJacobs
Message:

REST API: Support the patternProperties JSON Schema keyword.

Props yakimun.
Fixes #51024.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-test-controller.php

    r49063 r49082  
    122122                        ),
    123123                    ),
     124                    'patternProperties'    => array(
     125                        '[0-9]' => array(
     126                            'type' => 'string',
     127                        ),
     128                    ),
    124129                    'minProperties'        => 1,
    125130                    'maxProperties'        => 10,
Note: See TracChangeset for help on using the changeset viewer.