diff --git a/mira/metamodel/schema.json b/mira/metamodel/schema.json index e07d1a209..ec696d034 100644 --- a/mira/metamodel/schema.json +++ b/mira/metamodel/schema.json @@ -946,15 +946,23 @@ "properties": { "type": { "title": "Type", - "description": "The type of distribution, e.g. 'uniform', 'normal', etc.", + "description": "The type of distribution as provided by ProbOnto e.g. 'StandardUniform1', 'Beta1', etc.", "type": "string" }, "parameters": { "title": "Parameters", - "description": "The parameters of the distribution.", + "description": "The parameters of the distribution keyed by parameter names controlled by ProbOnto and values that are either floatingpoint values or symbolic expressions over other parameters.", "type": "object", "additionalProperties": { - "type": "number" + "anyOf": [ + { + "type": "number" + }, + { + "type": "string", + "example": "2*x" + } + ] } } }, diff --git a/mira/metamodel/template_model.py b/mira/metamodel/template_model.py index a6fa55bd9..3ceb852b8 100644 --- a/mira/metamodel/template_model.py +++ b/mira/metamodel/template_model.py @@ -109,7 +109,7 @@ class Distribution(BaseModel): ) parameters: Dict[str, Union[float, SympyExprStr]] = Field( description="The parameters of the distribution keyed by parameter names " - "controlled by ProbOnto and values that are either floating" + "controlled by ProbOnto and values that are either floating " "point values or symbolic expressions over other " "parameters." )