diff --git a/src/pdl/pdl-schema.json b/src/pdl/pdl-schema.json index 20570a1d6..a8dac644d 100644 --- a/src/pdl/pdl-schema.json +++ b/src/pdl/pdl-schema.json @@ -1407,9 +1407,19 @@ "additionalProperties": false, "properties": { "value": { - "items": {}, - "title": "Value", - "type": "array" + "anyOf": [ + { + "items": {}, + "type": "array" + }, + { + "type": "string" + }, + { + "$ref": "#/$defs/LocalizedExpression_TypeVar_" + } + ], + "title": "Value" } }, "required": [ diff --git a/src/pdl/pdl_ast.py b/src/pdl/pdl_ast.py index 0eb336dd8..c11a7d5f9 100644 --- a/src/pdl/pdl_ast.py +++ b/src/pdl/pdl_ast.py @@ -175,7 +175,7 @@ class ContributeTarget(StrEnum): class ContributeValue(BaseModel): - value: list[Any] + value: ExpressionType[list[Any]] model_config = ConfigDict(extra="forbid")