responseJsonSchema property
Output schema of the generated response.
This is an alternative to response_schema
that accepts
JSON Schema. If set, response_schema
must be
omitted, but response_mime_type
is required. While the full JSON Schema
may be sent, not all features are supported. Specifically, only the
following properties are supported: - $id
- $defs
- $ref
- $anchor
type
-format
-title
-description
-enum
(for strings and numbers) -items
-prefixItems
-minItems
-maxItems
-minimum
-maximum
-anyOf
-oneOf
(interpreted the same asanyOf
) -properties
-additionalProperties
-required
The non-standardpropertyOrdering
property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If$ref
is set on a sub-schema, no other properties, except for than those starting as a$
, may be set.
Optional.
The values for Object must be JSON objects. It can consist of num
,
String
, bool
and null
as well as Map
and List
values.
Implementation
core.Object? responseJsonSchema;