mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-24 16:07:30 +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:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
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
|
||||
$ref: "#/components/schemas/FeedbackRequest"
|
||||
responses:
|
||||
"201":
|
||||
description: Feedback submitted
|
||||
@ -7535,6 +7520,12 @@ components:
|
||||
description: Unique job identifier (same as prompt_id)
|
||||
status:
|
||||
type: string
|
||||
enum:
|
||||
- pending
|
||||
- in_progress
|
||||
- completed
|
||||
- failed
|
||||
- cancelled
|
||||
description: Current job status
|
||||
create_time:
|
||||
type: integer
|
||||
@ -7568,6 +7559,12 @@ components:
|
||||
format: uuid
|
||||
status:
|
||||
type: string
|
||||
enum:
|
||||
- pending
|
||||
- in_progress
|
||||
- completed
|
||||
- failed
|
||||
- cancelled
|
||||
workflow:
|
||||
type: object
|
||||
additionalProperties: true
|
||||
@ -9598,6 +9595,12 @@ components:
|
||||
$ref: "#/components/schemas/BillingBalance"
|
||||
has_payment_method:
|
||||
type: boolean
|
||||
enum:
|
||||
- awaiting_payment_method
|
||||
- pending_payment
|
||||
- paid
|
||||
- payment_failed
|
||||
- inactive
|
||||
|
||||
BillingSubscription:
|
||||
type: object
|
||||
@ -9659,6 +9662,12 @@ components:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- personal
|
||||
- team
|
||||
description: Workspace type (personal vs. team).
|
||||
owner_id:
|
||||
type: string
|
||||
member_count:
|
||||
@ -11666,3 +11675,24 @@ components:
|
||||
$ref: '#/components/schemas/WorkflowResponse'
|
||||
pagination:
|
||||
$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