Files
ComfyUI/openapi.yaml
Matt Miller 69f9848c39 openapi: promote workflow_templates_source enum to named schema
Cloud uses oapi-codegen to generate Go server code from this spec. With
nullable + inline enum, oapi-codegen 3.1 emits a reference to a generated
op-scoped type (e.g. `GetFeatures200JSONResponseWorkflowTemplatesSource`)
but doesn't emit the type definition itself — the generated code fails
to compile.

Promoting the enum to a top-level `WorkflowTemplatesSource` component
schema (referenced via allOf + $ref) makes oapi-codegen emit the type
declaration once at the schema name, and consumers reference it cleanly.

No behavioral change — same enum values, same nullability.
2026-05-27 00:39:43 -07:00

362 KiB