docs: add Comfy API v2 reference - #1334
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded a generated Comfy API v2 OpenAPI 3.0.3 contract covering asset and job APIs, then exposed it through English, Chinese, Japanese, and Korean documentation navigation. ChangesComfy API v2 reference
Suggested reviewers: 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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. Comment |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 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 `@openapi-v2.yaml`:
- Around line 88-92: Add the same explicit maxItems bound to the tags arrays in
the multipart upload schema at openapi-v2.yaml lines 88-92 and the from-hash
request body at lines 164-167. Optionally constrain each tag string with
maxLength, but ensure both canonical contract definitions declare the shared
tag-count limit.
- Around line 22-24: The global security declaration in openapi-v2.yaml
currently allows unauthenticated access through the {} fallback; update the
canonical contract so Cloud/serverless operations require bearerAuth, while
preserving anonymous access only for the intended self-hosted surface or
explicitly anonymous operations. Remove the global optional-auth alternative and
express any permitted anonymous access at the appropriate surface or operation
level.
- Around line 110-118: Remove the Retry-After header reference from the 409
hash_mismatch response while preserving its description and ErrorEnvelope
content schema; keep Retry-After defined only for applicable rate-limit
responses.
- Around line 714-726: Update the progress and error schema properties in the
job response to represent nullability with an OpenAPI 3.0-compatible anyOf/oneOf
union containing the referenced Progress or JobError schema plus a null branch.
Remove the sibling nullable: true values while preserving the existing
descriptions and references.
🪄 Autofix (Beta)
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: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 3119bf9d-13b0-404b-ab6e-22f5096abc0f
📒 Files selected for processing (2)
docs.jsonopenapi-v2.yaml
|
@wei-hai Can we add this under "Development"? The previous references APIs are at the top level nav bar, but I don't think they should actually be there. I want to change that soon. |
|
@robinjhuang Done in |
What changed
Why
The versioned v2 HTTP API now has a public, generated reference alongside the existing Cloud API reference.
Validation
The OpenAPI file is generated by the upstream public-spec workflow and should not be edited by hand.