[PR #10944] fix: enforce strict ISO 8601 format for JSON schema date-time strings #75693

Open
opened 2026-05-05 08:06:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10944
Author: @dbalata
Created: 6/2/2025
Status: 🔄 Open

Base: mainHead: iso-8601


📝 Commits (1)

  • 66052f4 fix: enforce strict ISO 8601 format for JSON schema date-time strings

📊 Changes

1 file changed (+22 additions, -1 deletions)

View changed files

📝 llama/llama.cpp/common/json-schema-to-grammar.cpp (+22 -1)

📄 Description

Adds modular ISO components and strict validation to prevent human-readable date outputs when using "format": "date-time" in structured JSON schemas.


🔄 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/10944 **Author:** [@dbalata](https://github.com/dbalata) **Created:** 6/2/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `iso-8601` --- ### 📝 Commits (1) - [`66052f4`](https://github.com/ollama/ollama/commit/66052f4921bbd3ed347417d0e529c701f050862e) fix: enforce strict ISO 8601 format for JSON schema date-time strings ### 📊 Changes **1 file changed** (+22 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `llama/llama.cpp/common/json-schema-to-grammar.cpp` (+22 -1) </details> ### 📄 Description Adds modular ISO components and strict validation to prevent human-readable date outputs when using "format": "date-time" in structured JSON schemas. --- <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-05-05 08:06:50 -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#75693