WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

OnboardingProfile::get_item_schema() public WC 1.0

Get the schema, conforming to JSON Schema.

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

No Hooks.

Return

Array. Nothing.

Usage

$OnboardingProfile = new OnboardingProfile();
$OnboardingProfile->get_item_schema();

Code of OnboardingProfile::get_item_schema() WC 5.3.0

<?php
public function get_item_schema() {
	// Unset properties used for collection params.
	$properties = self::get_profile_properties();
	foreach ( $properties as $key => $property ) {
		unset( $properties[ $key ]['default'] );
		unset( $properties[ $key ]['items'] );
		unset( $properties[ $key ]['validate_callback'] );
		unset( $properties[ $key ]['sanitize_callback'] );
	}

	$schema = array(
		'$schema'    => 'http://json-schema.org/draft-04/schema#',
		'title'      => 'onboarding_profile',
		'type'       => 'object',
		'properties' => $properties,
	);

	return $this->add_additional_fields_schema( $schema );
}