# rest_get_allowed_schema_keywords()

URL: https://chugunov.pro/api-wordpress/functions/rest_get_allowed_schema_keywords/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 5.6.0.

## Сигнатура

```php
rest_get_allowed_schema_keywords(): string[]
```

## Описание

Возвращает все допустимые свойства JSON-схемы.

## Возвращаемое значение

`string[]`

## Исходный код

Файл: `wp-includes/rest-api.php:2125`

```php
function rest_get_allowed_schema_keywords() {
	return array(
		'title',
		'description',
		'default',
		'type',
		'format',
		'enum',
		'items',
		'properties',
		'additionalProperties',
		'patternProperties',
		'minProperties',
		'maxProperties',
		'minimum',
		'maximum',
		'exclusiveMinimum',
		'exclusiveMaximum',
		'multipleOf',
		'minLength',
		'maxLength',
		'pattern',
		'minItems',
		'maxItems',
		'uniqueItems',
		'anyOf',
		'oneOf',
	);
}
```

## История изменений

- 5.6.0 — Introduced.

## Связанные

Используется в: [`rest_get_endpoint_args_for_schema`](https://chugunov.pro/api-wordpress/functions/rest_get_endpoint_args_for_schema/), `WP_REST_Server::get_data_for_route`.

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/rest_get_allowed_schema_keywords/
