Skip to content

feat(api): refine image request validation#37

Merged
typelicious merged 1 commit into
mainfrom
codex/feature/image-workflow-refinements-2026-03-12
Mar 12, 2026
Merged

feat(api): refine image request validation#37
typelicious merged 1 commit into
mainfrom
codex/feature/image-workflow-refinements-2026-03-12

Conversation

@typelicious
Copy link
Copy Markdown
Collaborator

What changed

  • add shared request normalization for image generation, image editing, and image dry-run previews
  • validate prompt, model, n, size, and scalar image fields before provider calls
  • make image preview and runtime endpoints fail fast with clear invalid-request responses
  • add regression tests and README/changelog updates

Why

Image routing already existed, but request validation was split across paths and allowed malformed image fields to fall through too late. This makes the image workflow stricter and more predictable.

How verified

  • PYTHONPYCACHEPREFIX="$PWD/.pycache" python3 -m compileall foundrygate tests
  • PYTHONPATH=. ./.venv-check-313/bin/pytest -q
  • ./.venv-check-313/bin/ruff check .
  • ./.venv-check-313/bin/ruff format --check .
  • /usr/bin/git diff --check

@typelicious typelicious merged commit 68e47e9 into main Mar 12, 2026
12 checks passed
@typelicious typelicious deleted the codex/feature/image-workflow-refinements-2026-03-12 branch March 12, 2026 16:22
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