WordPress at a glance
function is not described

rest_get_allowed_schema_keywords() WP 5.6.0

Get all valid JSON schema properties.

No Hooks.

Return

String[]. All valid JSON schema properties.

Usage

rest_get_allowed_schema_keywords();

Changelog

Since 5.6.0 Introduced.

Code of rest_get_allowed_schema_keywords() WP 5.7.2

<?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',
	);
}