From 5e834a981d35b823637f9cd88114ba8362251963 Mon Sep 17 00:00:00 2001 From: Zaid Ajaj Date: Tue, 10 Jan 2023 12:17:38 -0800 Subject: [PATCH] Update the json schema of pulumi schema to reflect that outputs can also be TypeSpec --- pkg/codegen/schema/pulumi.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/codegen/schema/pulumi.json b/pkg/codegen/schema/pulumi.json index 8ef735cc2bc2..e3e95968979d 100644 --- a/pkg/codegen/schema/pulumi.json +++ b/pkg/codegen/schema/pulumi.json @@ -529,8 +529,11 @@ } }, "outputs": { - "description": "The bag of output values for the function, if any.", - "$ref": "#/$defs/objectTypeSpec" + "description": "Specifies the return type of the function definition.", + "oneOf": [ + { "$ref": "#/$defs/objectTypeSpec" }, + { "$ref": "#/$defs/typeSpec" } + ] }, "deprecationMessage": { "description": "Indicates whether the function is deprecated",