wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_get_allowed_schema_keywords › WordPress Function

Since5.6.0
Deprecatedn/a
rest_get_allowed_schema_keywords ( No parameters )
Returns:
  • (string[]) All valid JSON schema properties.
Defined at:
Codex:

Get all valid JSON schema properties.



Source

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