WordPress\AiClient\Providers\Http\DTO

ApiKeyRequestAuthentication::getJsonSchemapublic staticWP 0.1.0

{@inheritDoc}

Method of the class: ApiKeyRequestAuthentication{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = ApiKeyRequestAuthentication::getJsonSchema(): array;

Changelog

Since 0.1.0 Introduced.

ApiKeyRequestAuthentication::getJsonSchema() code WP 7.0

public static function getJsonSchema(): array
{
    return ['type' => 'object', 'properties' => [self::KEY_API_KEY => ['type' => 'string', 'title' => 'API Key', 'description' => 'The API key used for authentication.']], 'required' => [self::KEY_API_KEY]];
}