WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/03/2020 07:18:40 PM (18 months ago)
Author:
TimothyBlynJacobs
Message:

REST API: Support the uuid JSON Schema format.

This accepts a uuid of any version. A future commit could add support for restricting uuids to a specific version.

Props johnwatkins0.
Fixes #50053.

File:
1 edited

Legend:

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

    r47450 r47753  
    7070                    'context' => array( 'view' ),
    7171                ),
     72                'someuuid'       => array(
     73                    'type'    => 'string',
     74                    'format'  => 'uuid',
     75                    'context' => array( 'view' ),
     76                ),
    7277                'someenum'       => array(
    7378                    'type'    => 'string',
Note: See TracChangeset for help on using the changeset viewer.