WordPress\AiClient\Providers\Http\DTO

Request::getJsonSchema │ public static │ WP 0.1.0

{@inheritDoc}

Метод класса: Request{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Список изменений

С версии 0.1.0 Введена.

Код Request::getJsonSchema() WP 7.1.4

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]];
}