[PR #14735] docs: replace deprecated zod-to-json-schema with Zod v4 native #25350

Open
opened 2026-04-19 18:09:52 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14735
Author: @mvanhorn
Created: 3/9/2026
Status: 🔄 Open

Base: mainHead: osc/14734-docs-zod-json-schema


📝 Commits (1)

  • 1dfb8be docs: replace deprecated zod-to-json-schema with Zod v4 native

📊 Changes

1 file changed (+3 additions, -4 deletions)

View changed files

📝 docs/capabilities/structured-outputs.mdx (+3 -4)

📄 Description

Fixes #14734

Summary

  • Replaced deprecated zod-to-json-schema library with Zod v4's native z.toJSONSchema() method in the structured outputs documentation
  • Updated import from import { z } from 'zod' to import { z } from 'zod/v4'
  • The zod-to-json-schema package is deprecated as Zod v4 includes built-in JSON Schema support

This contribution was developed with AI assistance (Claude Code).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14735 **Author:** [@mvanhorn](https://github.com/mvanhorn) **Created:** 3/9/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `osc/14734-docs-zod-json-schema` --- ### 📝 Commits (1) - [`1dfb8be`](https://github.com/ollama/ollama/commit/1dfb8be3620febf152b7a6ae271baf1c2804d65a) docs: replace deprecated zod-to-json-schema with Zod v4 native ### 📊 Changes **1 file changed** (+3 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `docs/capabilities/structured-outputs.mdx` (+3 -4) </details> ### 📄 Description Fixes #14734 ## Summary - Replaced deprecated `zod-to-json-schema` library with Zod v4's native `z.toJSONSchema()` method in the structured outputs documentation - Updated import from `import { z } from 'zod'` to `import { z } from 'zod/v4'` - The `zod-to-json-schema` package is deprecated as Zod v4 includes built-in JSON Schema support This contribution was developed with AI assistance (Claude Code). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 18:09:52 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#25350