WordPress\AiClient\Providers\Http\DTO
Response::getJsonSchema
{@inheritDoc}
Метод класса: Response{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = Response::getJsonSchema(): array;
Список изменений
| С версии 0.1.0 | Введена. |
Код Response::getJsonSchema() Response::getJsonSchema WP 7.1.4
public static function getJsonSchema(): array
{
return ['type' => 'object', 'properties' => [self::KEY_STATUS_CODE => ['type' => 'integer', 'minimum' => 100, 'maximum' => 599, 'description' => 'The HTTP status code.'], self::KEY_HEADERS => ['type' => 'object', 'additionalProperties' => ['type' => 'array', 'items' => ['type' => 'string']], 'description' => 'The response headers.'], self::KEY_BODY => ['type' => ['string', 'null'], 'description' => 'The response body.']], 'required' => [self::KEY_STATUS_CODE, self::KEY_HEADERS]];
}