Skip to content

Conversation

@thomasrowe5
Copy link

…redOutput

Fixes # (issue)

Adds automatic property ordering inference for Gemini structured outputs when using Zod schemas.

@changeset-bot
Copy link

changeset-bot bot commented Nov 7, 2025

⚠️ No Changeset found

Latest commit: 1515e29

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@christian-bromann
Copy link
Member

@thomasrowe5 it seems that there are still a lot of un-relevant changes, can we revert them to only focus on the actual issue?

Comment on lines +434 to +439

// 🧩 Add inferred property ordering for Gemini structured outputs
if (!jsonSchema.propertyOrdering) {
jsonSchema.propertyOrdering = withPropertyOrdering(schema);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm reading this right, you have to specify propertyOrdering as a property on the schema object to enable this?

z.object({
  propertyOrdering: z.something()
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants