diff --git a/cg/models/analysis.py b/cg/models/analysis.py index c6367b5020..348a91aa59 100644 --- a/cg/models/analysis.py +++ b/cg/models/analysis.py @@ -9,6 +9,9 @@ class AnalysisModel(BaseModel): """Metadata analysis model""" + class Config: + arbitrary_types_allowed = True + class NextflowAnalysis(AnalysisModel): """Nextflow's analysis results model.""" diff --git a/cg/models/taxprofiler/taxprofiler.py b/cg/models/taxprofiler/taxprofiler.py index c6cfb00f23..fbf585a27a 100644 --- a/cg/models/taxprofiler/taxprofiler.py +++ b/cg/models/taxprofiler/taxprofiler.py @@ -1,5 +1,6 @@ from pathlib import Path -from pydantic.v1 import BaseModel, Field + +from pydantic import BaseModel, Field from cg.constants.sequencing import SequencingPlatform from cg.models.nf_analysis import NextflowSampleSheetEntry, WorkflowParameters @@ -40,7 +41,7 @@ class TaxprofilerParameters(WorkflowParameters): centrifuge_save_reads: bool = True run_krona: bool = True run_profile_standardisation: bool = True - clusterOptions: str = Field(..., alias="cluster_options") + clusterOptions: str = Field(alias="cluster_options") priority: str