rest_get_allowed_schema_keywords()
Get all valid JSON schema properties.
No Hooks.
Returns
String[]. All valid JSON schema properties.
Usage
rest_get_allowed_schema_keywords();
Changelog
| Since 5.6.0 | Introduced. |
rest_get_allowed_schema_keywords() rest get allowed schema keywords code WP 6.9.1
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',
);
}