Application Passwords: Correct the schema of the app_id property of the application passwords REST API endpoint.
This property can contain either a UUID or an empty string. Props sukhendu2002, johnbillion. Fixes #53692 Built from https://develop.svn.wordpress.org/trunk@60404 git-svn-id: http://core.svn.wordpress.org/trunk@59740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -802,7 +802,16 @@ class WP_REST_Application_Passwords_Controller extends WP_REST_Controller {
|
||||
'app_id' => array(
|
||||
'description' => __( 'A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.' ),
|
||||
'type' => 'string',
|
||||
'format' => 'uuid',
|
||||
'oneOf' => array(
|
||||
array(
|
||||
'type' => 'string',
|
||||
'format' => 'uuid',
|
||||
),
|
||||
array(
|
||||
'type' => 'string',
|
||||
'enum' => array( '' ),
|
||||
),
|
||||
),
|
||||
'context' => array( 'view', 'edit', 'embed' ),
|
||||
),
|
||||
'name' => array(
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.9-alpha-60403';
|
||||
$wp_version = '6.9-alpha-60404';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user