GoogleCloudAiplatformV1Schema
import type { GoogleCloudAiplatformV1Schema } from "https://googleapis.deno.dev/v1/aiplatform:v1.ts";
Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.
§Properties
Optional. Can either be a boolean or an object; controls the presence of additional properties.
Optional. The value should be validated against any (one or more) of the subschemas in the list.
Optional. A map of definitions for use by ref
Only allowed at the root
of the schema.
Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]}
Optional. Example of the object. Will only populated when the object is the root.
Optional. The format of the data. Supported formats: for NUMBER type: "float", "double" for INTEGER type: "int32", "int64" for STRING type: "email", "byte", etc
Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY.
Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER
Optional. Pattern of the Type.STRING to restrict a string to a regular expression.
Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT.
Optional. The order of the properties. Not a standard field in open api spec. Only used to support the order of the properties.
Optional. Allows indirect references between schema nodes. The value
should be a valid reference to a child of the root defs
. For example, the
following schema defines a reference to a schema node named "Pet": type:
object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties:
name: type: string The value of the "pet" property is a reference to the
schema node named "Pet". See details in
https://json-schema.org/understanding-json-schema/structuring