mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-30 10:57:23 +08:00
openapi: add enum values + FeedbackRequest schema for cloud cutover (PR E) (#14070)
* openapi: add enum values + FeedbackRequest schema for cloud cutover (PR E)
Adds missing cloud-runtime enum values to vendor schemas that the
cloud runtime emits but vendor declared as plain strings.
Changes:
- JobEntry.status: enum [pending, in_progress, completed, failed, cancelled]
- JobDetailResponse.status: same enum
- BillingStatus: enum [awaiting_payment_method, pending_payment, paid,
payment_failed, inactive]
- FeedbackRequest schema added (with type enum)
- /api/feedback POST: requestBody now $refs FeedbackRequest
All cloud-runtime-emitted; no impact on OSS-local semantics.
Identified via Comfy-Org/cloud's TestCutoverSafe gate (BE-1106) as
the remaining schema-level divergences after PRs A-D landed and got
synced.
* openapi: add type enum to Workspace schema (cutover follow-up)
Cloud's Workspace runtime shape includes a 'type' field with enum
[personal, team] that vendor's Workspace was missing. Cloud handlers
reference the generated ingest.WorkspaceType Go enum.
Same kind of surgical addition as JobEntry.status / BillingStatus /
JobDetailResponse.status in this PR — adds cloud-runtime field to
existing vendor schema.
This commit is contained in:
parent
c3c881f37b
commit
187442cca4
62
openapi.yaml
62
openapi.yaml
@ -6315,22 +6315,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
$ref: "#/components/schemas/FeedbackRequest"
|
||||||
required:
|
|
||||||
- message
|
|
||||||
properties:
|
|
||||||
message:
|
|
||||||
type: string
|
|
||||||
description: Feedback message
|
|
||||||
rating:
|
|
||||||
type: integer
|
|
||||||
minimum: 1
|
|
||||||
maximum: 5
|
|
||||||
description: Optional satisfaction rating
|
|
||||||
context:
|
|
||||||
type: object
|
|
||||||
additionalProperties: true
|
|
||||||
description: Additional context metadata
|
|
||||||
responses:
|
responses:
|
||||||
"201":
|
"201":
|
||||||
description: Feedback submitted
|
description: Feedback submitted
|
||||||
@ -7535,6 +7520,12 @@ components:
|
|||||||
description: Unique job identifier (same as prompt_id)
|
description: Unique job identifier (same as prompt_id)
|
||||||
status:
|
status:
|
||||||
type: string
|
type: string
|
||||||
|
enum:
|
||||||
|
- pending
|
||||||
|
- in_progress
|
||||||
|
- completed
|
||||||
|
- failed
|
||||||
|
- cancelled
|
||||||
description: Current job status
|
description: Current job status
|
||||||
create_time:
|
create_time:
|
||||||
type: integer
|
type: integer
|
||||||
@ -7568,6 +7559,12 @@ components:
|
|||||||
format: uuid
|
format: uuid
|
||||||
status:
|
status:
|
||||||
type: string
|
type: string
|
||||||
|
enum:
|
||||||
|
- pending
|
||||||
|
- in_progress
|
||||||
|
- completed
|
||||||
|
- failed
|
||||||
|
- cancelled
|
||||||
workflow:
|
workflow:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
@ -9598,6 +9595,12 @@ components:
|
|||||||
$ref: "#/components/schemas/BillingBalance"
|
$ref: "#/components/schemas/BillingBalance"
|
||||||
has_payment_method:
|
has_payment_method:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
enum:
|
||||||
|
- awaiting_payment_method
|
||||||
|
- pending_payment
|
||||||
|
- paid
|
||||||
|
- payment_failed
|
||||||
|
- inactive
|
||||||
|
|
||||||
BillingSubscription:
|
BillingSubscription:
|
||||||
type: object
|
type: object
|
||||||
@ -9659,6 +9662,12 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- personal
|
||||||
|
- team
|
||||||
|
description: Workspace type (personal vs. team).
|
||||||
owner_id:
|
owner_id:
|
||||||
type: string
|
type: string
|
||||||
member_count:
|
member_count:
|
||||||
@ -11666,3 +11675,24 @@ components:
|
|||||||
$ref: '#/components/schemas/WorkflowResponse'
|
$ref: '#/components/schemas/WorkflowResponse'
|
||||||
pagination:
|
pagination:
|
||||||
$ref: '#/components/schemas/PaginationInfo'
|
$ref: '#/components/schemas/PaginationInfo'
|
||||||
|
|
||||||
|
FeedbackRequest:
|
||||||
|
type: object
|
||||||
|
x-runtime: [cloud]
|
||||||
|
description: "[cloud-only] User feedback submission body."
|
||||||
|
required:
|
||||||
|
- message
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
enum:
|
||||||
|
- missing_nodes
|
||||||
|
- general
|
||||||
|
- missing_models
|
||||||
|
description: Feedback category
|
||||||
|
category:
|
||||||
|
type: string
|
||||||
|
description: Additional category metadata
|
||||||
|
message:
|
||||||
|
type: string
|
||||||
|
description: User-provided feedback message
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user