WordPress\AiClient\Providers\Http\DTO

Request::getJsonSchemapublic staticWP 0.1.0

{@inheritDoc}

Method of the class: Request{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Changelog

Since 0.1.0 Introduced.

Request::getJsonSchema() code WP 7.1

public static function getJsonSchema(): array
{
    return ['type' => 'object', 'properties' => [self::KEY_METHOD => ['type' => 'string', 'description' => 'The HTTP method.'], self::KEY_URI => ['type' => 'string', 'description' => 'The request URI.'], self::KEY_HEADERS => ['type' => 'object', 'additionalProperties' => ['type' => 'array', 'items' => ['type' => 'string']], 'description' => 'The request headers.'], self::KEY_BODY => ['type' => ['string'], 'description' => 'The request body.'], self::KEY_OPTIONS => \WordPress\AiClient\Providers\Http\DTO\RequestOptions::getJsonSchema()], 'required' => [self::KEY_METHOD, self::KEY_URI, self::KEY_HEADERS]];
}