Make WordPress Core


Ignore:
Timestamp:
10/01/2020 02:47:08 AM (4 years 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-controller.php

    r49063 r49082  
    292292        }
    293293
    294         foreach ( array( 'properties', 'additionalProperties', 'minProperties', 'maxProperties' ) as $property ) {
     294        $object_properties = array(
     295            'properties',
     296            'patternProperties',
     297            'additionalProperties',
     298            'minProperties',
     299            'maxProperties',
     300        );
     301        foreach ( $object_properties as $property ) {
    295302            $this->assertArrayHasKey( $property, $args['someobject'] );
    296303        }
Note: See TracChangeset for help on using the changeset viewer.