Retrieves the model’s schema, conforming to JSON Schema.
Description
See also
Return
(array) Model schema data.
Source
File: src/db-objects/element-settings/rest-element-settings-controller.php
public function get_item_schema() { $schema = parent::get_item_schema(); $schema['properties']['element_id'] = array( 'description' => __( 'ID of the element this element setting belongs to.', 'torro-forms' ), 'type' => 'integer', 'minimum' => 1, 'context' => array( 'view', 'edit', 'embed' ), 'arg_options' => array( 'minimum' => 1, ), ); $schema['properties']['name'] = array( 'description' => __( 'Alphanumeric identifier for the element setting.', 'torro-forms' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), ); $schema['properties']['value'] = array( 'description' => __( 'Value of the element setting.', 'torro-forms' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), ); return $schema; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |