Skip to content

Commit 6670755

Browse files
Google APIscopybara-github
authored andcommitted
feat: new fields ref and defs are added to message .google.cloud.aiplatform.v1.Schema
PiperOrigin-RevId: 752845672
1 parent f8326a3 commit 6670755

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

google/cloud/aiplatform/v1/openapi.proto

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,31 @@ message Schema {
141141
// Optional. The value should be validated against any (one or more) of the
142142
// subschemas in the list.
143143
repeated Schema any_of = 11 [(google.api.field_behavior) = OPTIONAL];
144+
145+
// Optional. Allows indirect references between schema nodes. The value should
146+
// be a valid reference to a child of the root `defs`.
147+
//
148+
// For example, the following schema defines a reference to a schema node
149+
// named "Pet":
150+
//
151+
// type: object
152+
// properties:
153+
// pet:
154+
// ref: #/defs/Pet
155+
// defs:
156+
// Pet:
157+
// type: object
158+
// properties:
159+
// name:
160+
// type: string
161+
//
162+
// The value of the "pet" property is a reference to the schema node
163+
// named "Pet".
164+
// See details in
165+
// https://json-schema.org/understanding-json-schema/structuring
166+
string ref = 27 [(google.api.field_behavior) = OPTIONAL];
167+
168+
// Optional. A map of definitions for use by `ref`
169+
// Only allowed at the root of the schema.
170+
map<string, Schema> defs = 28 [(google.api.field_behavior) = OPTIONAL];
144171
}

0 commit comments

Comments
 (0)