Skip to content

Commit f6bda19

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

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

google/cloud/aiplatform/v1beta1/openapi.proto

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

0 commit comments

Comments
 (0)