Fix errors type and maintain error messsage

Fixes https://github.com/galaxyproject/galaxy/issues/18874
This commit is contained in:
mvdbeek
2025-12-25 10:55:59 +01:00
parent b7a002dcb8
commit 6f98404eeb
3 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -14020,9 +14020,11 @@ export interface components {
* Errors
* @description Errors associated with the invocation.
*/
errors?: {
[key: string]: unknown;
} | null;
errors?:
| {
[key: string]: unknown;
}[]
| null;
/**
* Galaxy Version
* @description The version of Galaxy this object was generated with.
+1 -1
View File
@@ -418,7 +418,7 @@ class GalaxyInternalMarkdownDirectiveHandler(metaclass=abc.ABCMeta):
class ReadyForExportMarkdownDirectiveHandler(GalaxyInternalMarkdownDirectiveHandler):
def __init__(self, trans, extra_rendering_data=None):
extra_rendering_data = extra_rendering_data or {}
extra_rendering_data = extra_rendering_data if extra_rendering_data is not None else {}
self.trans = trans
self.extra_rendering_data = extra_rendering_data
+1 -1
View File
@@ -470,7 +470,7 @@ class InvocationReport(Model, WithModelClass):
generate_time: Optional[str] = schema.GenerateTimeField
generate_version: Optional[str] = schema.GenerateVersionField
errors: Optional[Dict[str, Any]] = Field(
errors: Optional[List[Dict[str, Any]]] = Field(
default=None,
title="Errors",
description="Errors associated with the invocation.",