Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Standard JSON Schema support#11224

Merged
lgrammel merged 13 commits into
mainfrom
lg/CLFnw4dz
Dec 16, 2025
Merged

feat: Standard JSON Schema support#11224
lgrammel merged 13 commits into
mainfrom
lg/CLFnw4dz

Conversation

@lgrammel

@lgrammel lgrammel commented Dec 16, 2025

Copy link
Copy Markdown
Collaborator

Background

Standard JSON Schema was released as part of Standard Schema 1.1.0 (see standard-schema/standard-schema#134 ). This enables integration of any schema library that supports Standard JSON Schema.

Additionally, the current peer dependency mechanism has issues in certain environments (see #10122 ).

Summary

  • remove direct Effect, Arktype, and Valibot integrations
  • support Standard JSON Schema

Manual Verification

  • test zod direct examples/ai-core/src/generate-text/anthropic-output-object-zod.ts
  • test zod v4 examples/ai-core/src/generate-text/anthropic-output-object-zod4.ts
  • test arktype examples/ai-core/src/generate-text/anthropic-output-object-arktype.ts
  • test valibot examples/ai-core/src/generate-text/anthropic-output-object-valibot.ts

Tasks

  • remove direct integrations
  • update valibot package
  • standard json schema testing
  • example updates
  • docs: add section on different validation library options (zod, valibot, jsonschema, standardjsonschema)
  • changeset

Future Work

  • improve schema library support documentation

Related Issues

Fixes #10122
Resolves #11044

@ghost ghost added the maintenance CI, internal documentation, automations, etc label Dec 16, 2025
@lgrammel lgrammel changed the title 1 feat: Standard JSON Schema support Dec 16, 2025
@lgrammel lgrammel marked this pull request as ready for review December 16, 2025 14:12
Comment thread content/docs/02-foundations/04-tools.mdx Outdated
Co-authored-by: vercel[bot] <35613825+vercel[bot]@users.noreply.github.com>
@lgrammel lgrammel merged commit 763d04a into main Dec 16, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance CI, internal documentation, automations, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StandardSchema json updates (v6) Missing dependencies @valibot/to-json-schema and effect

2 participants