Skip to content

Commit f665847

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(api): sort OpenAPI schema properties for InvocationOutputMap
This makes the schema output deterministic!
1 parent 33624fc commit f665847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/app/util/custom_openapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def openapi() -> dict[str, Any]:
8181
# Add the output map to the schema
8282
openapi_schema["components"]["schemas"]["InvocationOutputMap"] = {
8383
"type": "object",
84-
"properties": invocation_output_map_properties,
84+
"properties": dict(sorted(invocation_output_map_properties.items())),
8585
"required": invocation_output_map_required,
8686
}
8787

0 commit comments

Comments
 (0)