public function get_item_schema() {
		$schema = array(
			'$schema'    => 'http://json-schema.org/draft-04/schema#',
			'title'      => 'post_tag' === $this->taxonomy ? 'tag' : $this->taxonomy,
			'type'       => 'object',
			'properties' => array(
				'id'          => array(
					'description'  => __( 'Unique identifier for the resource.' ),
					'type'         => 'integer',
					'context'      => array( 'view', 'embed', 'edit' ),
					'readonly'     => true,
				),
				'count'       => array(
					'description'  => __( 'Number of published posts for the resource.' ),
					'type'         => 'integer',
					'context'      => array( 'view', 'edit' ),
					'readonly'     => true,
				),
				'description' => array(
					'description'  => __( 'HTML description of the resource.' ),
					'type'         => 'string',
					'context'      => array( 'view', 'edit' ),
					'arg_options'  => array(
						'sanitize_callback' => 'wp_filter_post_kses',
					),
				),
				'link'        => array(
					'description'  => __( 'URL to the resource.' ),
					'type'         => 'string',
					'format'       => 'uri',
					'context'      => array( 'view', 'embed', 'edit' ),
					'readonly'     => true,
				),
				'name'        => array(
					'description'  => __( 'HTML title for the resource.' ),
					'type'         => 'string',
					'context'      => array( 'view', 'embed', 'edit' ),
					'arg_options'  => array(
						'sanitize_callback' => 'sanitize_text_field',
					),
					'required'     => true,
				),
				'slug'        => array(
					'description'  => __( 'An alphanumeric identifier for the resource unique to its type.' ),
					'type'         => 'string',
					'context'      => array( 'view', 'embed', 'edit' ),
					'arg_options'  => array(
						'sanitize_callback' => array( $this, 'sanitize_slug' ),
					),
				),
				'taxonomy'    => array(
					'description'  => __( 'Type attribution for the resource.' ),
					'type'         => 'string',
					'enum'         => array_keys( get_taxonomies() ),
					'context'      => array( 'view', 'embed', 'edit' ),
					'readonly'     => true,
				),
			),
		);
		$taxonomy = get_taxonomy( $this->taxonomy );
		if ( $taxonomy->hierarchical ) {
			$schema['properties']['parent'] = array(
				'description'  => __( 'The id for the parent of the resource.' ),
				'type'         => 'integer',
				'context'      => array( 'view', 'edit' ),
			);
		}

		$schema['properties']['meta'] = $this->meta->get_field_schema();
		return $this->add_additional_fields_schema( $schema );
	}
public function get_item_schema() {
		$schema = array(
			'$schema'    => 'http://json-schema.org/draft-04/schema#',
			'title'      => 'post_tag' === $this->taxonomy ? 'tag' : $this->taxonomy,
			'type'       => 'object',
			'properties' => array(
				'id'          => array(
					'description'  => __( 'Unique identifier for the resource.' ),
					'type'         => 'integer',
					'context'      => array( 'view', 'embed', 'edit' ),
					'readonly'     => true,
				),
				'count'       => array(
					'description'  => __( 'Number of published posts for the resource.' ),
					'type'         => 'integer',
					'context'      => array( 'view', 'edit' ),
					'readonly'     => true,
				),
				'description' => array(
					'description'  => __( 'HTML description of the resource.' ),
					'type'         => 'string',
					'context'      => array( 'view', 'edit' ),
					'arg_options'  => array(
						'sanitize_callback' => 'wp_filter_post_kses',
					),
				),
				'link'        => array(
					'description'  => __( 'URL to the resource.' ),
					'type'         => 'string',
					'format'       => 'uri',
					'context'      => array( 'view', 'embed', 'edit' ),
					'readonly'     => true,
				),
				'name'        => array(
					'description'  => __( 'HTML title for the resource.' ),
					'type'         => 'string',
					'context'      => array( 'view', 'embed', 'edit' ),
					'arg_options'  => array(
						'sanitize_callback' => 'sanitize_text_field',
					),
					'required'     => true,
				),
				'slug'        => array(
					'description'  => __( 'An alphanumeric identifier for the resource unique to its type.' ),
					'type'         => 'string',
					'context'      => array( 'view', 'embed', 'edit' ),
					'arg_options'  => array(
						'sanitize_callback' => array( $this, 'sanitize_slug' ),
					),
				),
				'taxonomy'    => array(
					'description'  => __( 'Type attribution for the resource.' ),
					'type'         => 'string',
					'enum'         => array_keys( get_taxonomies() ),
					'context'      => array( 'view', 'embed', 'edit' ),
					'readonly'     => true,
				),
			),
		);
		$taxonomy = get_taxonomy( $this->taxonomy );
		if ( $taxonomy->hierarchical ) {
			$schema['properties']['parent'] = array(
				'description'  => __( 'The id for the parent of the resource.' ),
				'type'         => 'integer',
				'context'      => array( 'view', 'edit' ),
			);
		}

		$schema['properties']['meta'] = $this->meta->get_field_schema();
		return $this->add_additional_fields_schema( $schema );
	}
public function get_item_schema ( ) { $ schema = array ( '$schema' => 'http://json-schema.org/draft-04/schema#' , 'title' => 'post_tag' === $ this -> taxonomy ? 'tag' : $ this -> taxonomy , 'type' => 'object' , 'properties' => array ( 'id' => array ( 'description' => __ ( 'Unique identifier for the resource.' ) , 'type' => 'integer' , 'context' => array ( 'view' , 'embed' , 'edit' ) , 'readonly' => true , ) , 'count' => array ( 'description' => __ ( 'Number of published posts for the resource.' ) , 'type' => 'integer' , 'context' => array ( 'view' , 'edit' ) , 'readonly' => true , ) , 'description' => array ( 'description' => __ ( 'HTML description of the resource.' ) , 'type' => 'string' , 'context' => array ( 'view' , 'edit' ) , 'arg_options' => array ( 'sanitize_callback' => 'wp_filter_post_kses' , ) , ) , 'link' => array ( 'description' => __ ( 'URL to the resource.' ) , 'type' => 'string' , 'format' => 'uri' , 'context' => array ( 'view' , 'embed' , 'edit' ) , 'readonly' => true , ) , 'name' => array ( 'description' => __ ( 'HTML title for the resource.' ) , 'type' => 'string' , 'context' => array ( 'view' , 'embed' , 'edit' ) , 'arg_options' => array ( 'sanitize_callback' => 'sanitize_text_field' , ) , 'required' => true , ) , 'slug' => array ( 'description' => __ ( 'An alphanumeric identifier for the resource unique to its type.' ) , 'type' => 'string' , 'context' => array ( 'view' , 'embed' , 'edit' ) , 'arg_options' => array ( 'sanitize_callback' => array ( $ this , 'sanitize_slug' ) , ) , ) , 'taxonomy' => array ( 'description' => __ ( 'Type attribution for the resource.' ) , 'type' => 'string' , 'enum' => array_keys ( get_taxonomies ( ) ) , 'context' => array ( 'view' , 'embed' , 'edit' ) , 'readonly' => true , ) , ) , ) ; $ taxonomy = get_taxonomy ( $ this -> taxonomy ) ; if ( $ taxonomy -> hierarchical ) { $ schema [ 'properties' ] [ 'parent' ] = array ( 'description' => __ ( 'The id for the parent of the resource.' ) , 'type' => 'integer' , 'context' => array ( 'view' , 'edit' ) , ) ; } $ schema [ 'properties' ] [ 'meta' ] = $ this -> meta -> get_field_schema ( ) ; return $ this -> add_additional_fields_schema ( $ schema ) ; }
Gets the term's schema, conforming to JSON Schema.

@return array
Gets the term s schema conforming to JSON Schema .