Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.21 KB

SchemaField.md

File metadata and controls

28 lines (22 loc) · 1.21 KB

SajariAPIClient::SchemaField

Properties

Name Type Description Notes
array Boolean Array indicates if the field is an array of values. For example, if `type` is string and `array` is `true`, then the field is an array of strings. [optional]
array_length Integer The required length of the array, if `array` is `true`. This allows you to enforce that an array contains an exact number of items. For example, to store a 2x2 vector, you could set `type` to float, `array` to `true` and `array_length` to `4`. [optional]
description String The description of the field. [optional]
mode SchemaFieldMode [default to 'MODE_UNSPECIFIED']
name String The name of the field.
type SchemaFieldType [default to 'TYPE_UNSPECIFIED']

Example

require 'sdk_ruby'

instance = SajariAPIClient::SchemaField.new(
  array: null,
  array_length: null,
  description: null,
  mode: null,
  name: null,
  type: null
)