Skip to content

Add date warning - #3806

Open
Tesla2000 wants to merge 1 commit into
openai:mainfrom
Tesla2000:date-warning
Open

Add date warning#3806
Tesla2000 wants to merge 1 commit into
openai:mainfrom
Tesla2000:date-warning

Conversation

@Tesla2000

@Tesla2000 Tesla2000 commented Sep 5, 2026

Copy link
Copy Markdown
  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

@Tesla2000
Tesla2000 requested a review from a team as a code owner September 5, 2026 21:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 571f10ac29

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread uv.lock
]
sdist = { url = "https://files.pythonhosted.org/packages/96/f0/5eb65b2bb0d09ac6776f2eb54adee6abe8228ea05b20a5ad0e4945de8aac/anyio-4.12.1.tar.gz", hash = "sha256:41cfcc3a4c85d3f05c932da7c26d0201ac36f72abd4435ba90d0464a3ffed703", size = 228685, upload-time = "2026-01-06T11:45:21.246Z" }
sdist = { url = "https://files.pythonhosted.org/packages/a9/d2/f4d173e22df740bc37b1db102b386ba719b66e95b0f0d751f556b387e6d2/anyio-4.15.1.tar.gz", hash = "sha256:9f28306018cbd6d329e64a36d58256edff76dd996fe423bc957326e578b82a94", size = 276966, upload-time = "2026-09-05T10:42:39.44Z" }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Regenerate the lockfile with the cooling window

This entry pins AnyIO 4.15.1, uploaded at 2026-09-05T10:42Z only hours before this 2026-09-05 commit, despite pyproject.toml:84 specifying exclude-newer = "8 days"; the lock similarly adds several other packages uploaded only 1–3 days earlier. uv help lock defines this option as limiting candidate packages to those uploaded before the cutoff, while locked syncs consume the already-selected artifacts, so this refresh defeats the repository's dependency cooling control. Regenerate the lock with the required uv configuration or omit the unrelated lock refresh.

AGENTS.md reference: AGENTS.md:L31-L34

Useful? React with 👍 / 👎.

Comment on lines +259 to +263
return json_schema.get("format") in {"date", "date-time"} or any(
map(
_is_date_format,
(json_schema.get("properties") or {}).values(),
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Traverse union branches when detecting date formats

For a response model such as class R(BaseModel): when: date | None, Pydantic places the date schema below properties.when.anyOf, but this helper only recurses through properties, $defs, and items, so it returns false and skips the new warning. Dates under Pydantic v1's definitions, dictionary additionalProperties, and tuple prefixItems are missed for the same reason; recurse through all dictionary/list child schemas or explicitly handle these containers.

Useful? React with 👍 / 👎.

Comment thread uv.lock
[[package]]
name = "openai"
version = "3.8.0" # x-release-please-version
version = "3.8.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore the release-please marker

Removing the # x-release-please-version suffix makes the dependency-locks job fail unconditionally: .github/workflows/ci.yml:63-67 explicitly asserts that the lockfile contains version = "<project version>" # x-release-please-version before running uv lock --check. Preserve this marker when refreshing the lockfile.

Useful? React with 👍 / 👎.

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.

1 participant