WordPress at a glance
function is not described

WP_REST_Meta_Fields::get_field_schema() public WP 4.7.0

Retrieves the object's meta schema, conforming to JSON Schema.

{} It's a method of the class: WP_REST_Meta_Fields{}

No Hooks.

Return

Array. Field schema data.

Usage

$WP_REST_Meta_Fields = new WP_REST_Meta_Fields();
$WP_REST_Meta_Fields->get_field_schema();

Changelog

Since 4.7.0 Introduced.

Code of WP_REST_Meta_Fields::get_field_schema() WP 5.5.1

<?php
public function get_field_schema() {
	$fields = $this->get_registered_fields();

	$schema = array(
		'description' => __( 'Meta fields.' ),
		'type'        => 'object',
		'context'     => array( 'view', 'edit' ),
		'properties'  => array(),
		'arg_options' => array(
			'sanitize_callback' => null,
			'validate_callback' => array( $this, 'check_meta_is_array' ),
		),
	);

	foreach ( $fields as $args ) {
		$schema['properties'][ $args['name'] ] = $args['schema'];
	}

	return $schema;
}