mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-26 02:42:36 +08:00
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.
362 KiB
362 KiB