mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
[nodes-api] Fix API generation to correctly reference outputs
This commit is contained in:
parent
3ee2798ede
commit
b853ceea65
@ -113,9 +113,9 @@ def custom_openapi():
|
||||
invoker_schema = openapi_schema["components"]["schemas"][invoker_name]
|
||||
outputs_ref = {"$ref": f"#/components/schemas/{output_type_title}"}
|
||||
if "additionalProperties" not in invoker_schema:
|
||||
invoker_schema["additionalProperties"] = {}
|
||||
invoker_schema["additionalProperties"] = { "outputs": { "additionalProperties": outputs_ref } }
|
||||
|
||||
invoker_schema["additionalProperties"]["outputs"] = outputs_ref
|
||||
invoker_schema["additionalProperties"]["outputs"]["additionalProperties"] = outputs_ref
|
||||
|
||||
app.openapi_schema = openapi_schema
|
||||
return app.openapi_schema
|
||||
|
Loading…
Reference in New Issue
Block a user