docs(openapi): remove top-level width/height fields on Asset schema (… · code/app-python-comfyui@d0328b4 · GitHub
Skip to content

Commit d0328b4

Browse files
docs(openapi): remove top-level width/height fields on Asset schema (Comfy-Org#13973)
These two fields were added recently to the Asset schema as nullable integers, with the intent of exposing original image dimensions for FE consumers (cloud-side thumbnailing makes naturalWidth/Height return the wrong size for an image card's dimension label). The implementation effort that consumes them subsequently converged on a different shape — dimensions nested under the existing free-form `metadata` JSON field as `{kind: "image", width, height}` — to avoid introducing type-specific flat fields on the canonical Asset shape, and to leave room for forward-compatible additions (video duration, fps, etc.) without further schema churn. This removes the now-unused top-level fields so the spec reflects the agreed direction. No other schema definitions reference these fields directly: AssetCreated, AssetUpdated, etc. inherit Asset via allOf and do not redefine them. The runtime ingest implementation that would have populated these fields was not yet shipped, so no clients are relying on the top-level shape. Co-authored-by: Alexis Rolland <alexisrolland@hotmail.com>
1 parent 6b61918 commit d0328b4

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎openapi.yaml‎

Lines changed: 0 additions & 8 deletions

0 commit comments

Comments
 (0)