fix(api): sort OpenAPI schema properties for InvocationOutputMap

This makes the schema output deterministic!
This commit is contained in:
psychedelicious 2024-08-10 17:24:28 +10:00 committed by Kent Keirsey
parent 33624fc2fa
commit f66584713c

View File

@ -81,7 +81,7 @@ def get_openapi_func(
# Add the output map to the schema
openapi_schema["components"]["schemas"]["InvocationOutputMap"] = {
"type": "object",
"properties": invocation_output_map_properties,
"properties": dict(sorted(invocation_output_map_properties.items())),
"required": invocation_output_map_required,
}