From 6433bc5b106cb85a596ccebc23e0144470f46fc8 Mon Sep 17 00:00:00 2001 From: Thomas Kappler Date: Thu, 13 Jun 2024 09:48:40 +0200 Subject: [PATCH] Comment about #243 warn about resource.Asset --- infer/schema.go | 1 + 1 file changed, 1 insertion(+) diff --git a/infer/schema.go b/infer/schema.go index 90e12e4..14616a8 100644 --- a/infer/schema.go +++ b/infer/schema.go @@ -119,6 +119,7 @@ func serializeTypeAsPropertyType( t = t.Elem() } if t == reflect.TypeOf(resource.Asset{}) { + // Provider authors should not be using resource.Asset directly, but rather types.AssetOrArchive. #243 return schema.TypeSpec{ Ref: "pulumi.json#/Asset", }, nil