rest_get_allowed_schema_keywords() – Get all valid JSON schema properties.

You appear to be a bot. Output may be restricted

Description

Get all valid JSON schema properties.

Usage

$string[] = rest_get_allowed_schema_keywords();

Parameters

Returns

string[] All valid JSON schema properties.

Source

File name: wordpress/wp-includes/rest-api.php
Lines:

1 to 29 of 29
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',
  );
}
 

 View on GitHub View on Trac