WordPress\AiClient\Providers\Models\DTO
SupportedOption::getJsonSchema
{@inheritDoc}
Метод класса: SupportedOption{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = SupportedOption::getJsonSchema(): array;
Список изменений
| С версии 0.1.0 | Введена. |
Код SupportedOption::getJsonSchema() SupportedOption::getJsonSchema WP 7.1.2
public static function getJsonSchema(): array
{
return ['type' => 'object', 'properties' => [self::KEY_NAME => ['type' => 'string', 'enum' => OptionEnum::getValues(), 'description' => 'The option name.'], self::KEY_SUPPORTED_VALUES => ['type' => 'array', 'items' => ['oneOf' => [['type' => 'string'], ['type' => 'number'], ['type' => 'boolean'], ['type' => 'null'], ['type' => 'array'], ['type' => 'object']]], 'description' => 'The supported values for this option.']], 'required' => [self::KEY_NAME]];
}