Skip to content

additionalProperties missing in Schema #790

@priyanahata

Description

@priyanahata

/ The com.google.genai.types.Schema class (and its Builder) is missing the 'additionalProperties' field.
// This is a critical omission for OpenAPI 3.0 compliance, as it makes it impossible to
// define Map-like structures (objects with dynamic keys) using the native Schema objects.
//
// Expected usage that is currently impossible:
Schema mapSchema = Schema.builder()
.type("object")
.additionalProperties(Schema.builder().type("string").build()) // Method 'additionalProperties' is missing
.build();

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions