mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-08-01 18:56:41 +00:00
[openapi] Improve upload endpoint request schemas
Enhance multipart/form-data schemas for image upload endpoints: - Add required field constraints for image uploads - Specify enum values for overwrite parameter ("true"/"false") - Add default values for type ("input") and subfolder ("") - Mark image and original_ref as required fields for mask uploads - Improve field descriptions and validation These changes make the API specification more precise and match the actual server implementation requirements.
This commit is contained in:
parent
7baed85b1d
commit
1d2b704160
12
openapi.yaml
12
openapi.yaml
@ -251,6 +251,8 @@ paths:
|
||||
multipart/form-data:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- image
|
||||
properties:
|
||||
image:
|
||||
type: string
|
||||
@ -258,16 +260,21 @@ paths:
|
||||
description: The image file to upload
|
||||
overwrite:
|
||||
type: string
|
||||
description: Whether to overwrite if file exists (true/false)
|
||||
enum:
|
||||
- "true"
|
||||
- "false"
|
||||
description: Whether to overwrite if file exists
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- input
|
||||
- temp
|
||||
- output
|
||||
default: input
|
||||
description: Type of directory to store the image in
|
||||
subfolder:
|
||||
type: string
|
||||
default: ""
|
||||
description: Subfolder to store the image in
|
||||
responses:
|
||||
'200':
|
||||
@ -291,6 +298,9 @@ paths:
|
||||
multipart/form-data:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- image
|
||||
- original_ref
|
||||
properties:
|
||||
image:
|
||||
type: string
|
||||
|
Loading…
x
Reference in New Issue
Block a user