@@ -846,7 +846,7 @@ def validate(
846846
847847 validation_results = ValidationResultList ()
848848 if self .config .extensions :
849- extensions = "," .join (e . name for e in self .config .extensions )
849+ extensions = "," .join (self .config .extensions . keys () )
850850 validation_results .append (
851851 ValidationIssue (
852852 ValidationIssueSeverity .WARNING ,
@@ -1116,7 +1116,7 @@ def model_dump(self, **kwargs) -> dict[str, Any]:
11161116 >>> p += core.Parameter(id="par", lb=0, ub=1)
11171117 >>> pprint(p.model_dump())
11181118 {'conditions': [],
1119- 'config': {'extensions': [] ,
1119+ 'config': {'extensions': {} ,
11201120 'format_version': '2.0.0',
11211121 'parameter_file': None,
11221122 'problems': []},
@@ -1168,7 +1168,6 @@ class SubProblem(BaseModel):
11681168class ExtensionConfig (BaseModel ):
11691169 """The configuration of a PEtab extension."""
11701170
1171- name : str
11721171 version : str
11731172 config : dict
11741173
@@ -1194,8 +1193,8 @@ class ProblemConfig(BaseModel):
11941193 parameter_file : str | AnyUrl | None = None
11951194 #: The list of problems in the configuration.
11961195 problems : list [SubProblem ] = []
1197- #: Extensiions used by the problem.
1198- extensions : list [ ExtensionConfig ] = []
1196+ #: Extensions used by the problem.
1197+ extensions : dict [ str , ExtensionConfig ] = {}
11991198
12001199 def to_yaml (self , filename : str | Path ):
12011200 """Write the configuration to a YAML file.
0 commit comments