Skip to content

chore: sync vendored Comfy API v2 spec (cloud@04133db) - #40

Open
comfy-pr-bot wants to merge 1 commit into
mainfrom
chore/sync-v2-spec-04133db
Open

chore: sync vendored Comfy API v2 spec (cloud@04133db)#40
comfy-pr-bot wants to merge 1 commit into
mainfrom
chore/sync-v2-spec-04133db

Conversation

@comfy-pr-bot

@comfy-pr-bot comfy-pr-bot commented Aug 7, 2026

Copy link
Copy Markdown
Member

Automated sync of the public Comfy API v2 spec, projected from the
canonical contract (internal notes stripped, all component schemas
kept). Source: cloud@04133db.

This PR is on its own per-source-commit branch
(chore/sync-v2-spec-04133db); a later
spec change opens a separate PR and will not touch this branch, so a
regen commit pushed here is safe.

Action required before merge: regenerate the low layer and commit
the result so the spec-drift check passes —

scripts/gen_models.sh (datamodel-code-generator)

Summary by CodeRabbit

  • Documentation
    • Updated API metadata and server URL examples.
    • Replaced legacy job and asset identifiers with UUID examples.
    • Expanded documentation for queue-full responses and deployment provisioning failures.
    • Clarified follow-up URL resolution and documented deployment-specific error codes.
    • Updated asset-reference examples.

@comfy-pr-bot
comfy-pr-bot requested review from a team as code owners August 7, 2026 22:08
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The OpenAPI specification updates deployment URL examples, documents deployment-specific errors and retry handling, defines host-relative follow-up URLs, and replaces legacy resource identifiers with UUID examples.

Changes

OpenAPI contract updates

Layer / File(s) Summary
Deployment URL and error contract
spec/openapi.yaml
The specification updates the serverless deployment URL template and documents deployment_not_ready and deployment_stopped responses with retry guidance.
UUID resource examples
spec/openapi.yaml
Job, asset, output, and asset-reference examples now use UUID-formatted identifiers.
Follow-up URL resolution
spec/openapi.yaml
JobUrls documentation defines host-relative link resolution and mounted deployment prefixes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: wei-hai

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes syncing the vendored Comfy API v2 specification from the specified source commit.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/sync-v2-spec-04133db

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@spec/openapi.yaml`:
- Around line 902-913: Add deployment_stopped to the POST /api/v2/jobs
operation-level 422 response contract, alongside invalid_workflow,
workflow_format_ui, missing_asset, and idempotency_key_reuse, or reference a
deployment-specific 422 response. Keep the existing error codes and response
behavior unchanged.
- Line 846: Replace the truncated example under Output.id with a complete, valid
UUID string, preserving its role as the documented asset UUID example.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: aaecf88a-10d1-439a-bd1d-97f9aed56563

📥 Commits

Reviewing files that changed from the base of the PR and between cd90a51 and 09c9940.

📒 Files selected for processing (1)
  • spec/openapi.yaml

Comment thread spec/openapi.yaml
type: string
description: Asset UUID.
example: asset_01JZV9R4N8...
example: 9f8a1c0d-2b3e-4f56-...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Use a complete UUID for Output.id.example.

The value contains ... and is not a valid UUID, although Output.id is documented as an asset UUID. OpenAPI tooling or generated test data can reject this example.

Proposed correction
-          example: 9f8a1c0d-2b3e-4f56-...
+          example: 9f8a1c0d-2b3e-4f56-8a7b-1c2d3e4f5a6b
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
example: 9f8a1c0d-2b3e-4f56-...
example: 9f8a1c0d-2b3e-4f56-8a7b-1c2d3e4f5a6b
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@spec/openapi.yaml` at line 846, Replace the truncated example under Output.id
with a complete, valid UUID string, preserving its role as the documented asset
UUID example.

Comment thread spec/openapi.yaml
Comment on lines +902 to +913
Deployment-scoped surfaces add: `deployment_not_ready` (429 +

Retry-After — the deployment can still reach ready; retry) and

`deployment_stopped` (422 — terminal deployment state; a retry

cannot succeed without operator action). A 429 is disambiguated

by `error.code` alone; clients should treat any 429 + Retry-After

as "back off and retry".

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Add deployment_stopped to the operation-level 422 contract.

ErrorEnvelope now documents deployment_stopped as a deployment-scoped 422, but the POST /api/v2/jobs response at Line 391 still lists only invalid_workflow, workflow_format_ui, missing_asset, and idempotency_key_reuse. The operation documentation is incomplete for deployment-scoped servers.

Add deployment_stopped to that 422 response description or define a deployment-specific 422 response.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@spec/openapi.yaml` around lines 902 - 913, Add deployment_stopped to the POST
/api/v2/jobs operation-level 422 response contract, alongside invalid_workflow,
workflow_format_ui, missing_asset, and idempotency_key_reuse, or reference a
deployment-specific 422 response. Keep the existing error codes and response
behavior unchanged.

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.

2 participants