mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-03 21:34:30 +08:00
Fix errors type and maintain error messsage
Fixes https://github.com/galaxyproject/galaxy/issues/18874
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user