Skip to content

Commit

Permalink
Comment about #243 warn about resource.Asset
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas11 committed Jun 13, 2024
1 parent 134c038 commit 6433bc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions infer/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6433bc5

Please sign in to comment.