@@ -163,9 +163,9 @@ class Statistics(BaseModel):
163
163
class OutputFormat (str , Enum ):
164
164
"""Format of an `Input`."""
165
165
166
- JSON = "JSON "
166
+ JSON = "json "
167
167
"""JSON format, utf-8 encoded."""
168
- CSV_ARCHIVE = "CSV_ARCHIVE "
168
+ CSV_ARCHIVE = "csv-archive "
169
169
"""CSV archive format: multiple CSV files."""
170
170
171
171
@@ -334,11 +334,10 @@ def to_dict(self) -> dict[str, any]:
334
334
"""
335
335
336
336
output_dict = {
337
- "options" : self .options .to_dict () if self .options is not None else None ,
338
- "output_format" : self .output_format ,
339
- "solution" : self .solution ,
340
- "statistics" : self .statistics .to_dict () if self .statistics is not None else None ,
341
- "assets" : [asset .to_dict () for asset in self .assets ] if self .assets is not None else None ,
337
+ "options" : self .options .to_dict () if self .options is not None else {},
338
+ "solution" : self .solution if self .solution is not None else {},
339
+ "statistics" : self .statistics .to_dict () if self .statistics is not None else {},
340
+ "assets" : [asset .to_dict () for asset in self .assets ] if self .assets is not None else [],
342
341
}
343
342
344
343
if self .output_format == OutputFormat .CSV_ARCHIVE :
0 commit comments