Skip to content

Support previews of interpolated JSON values #569

@kubukoz

Description

@kubukoz

For example, given the following interpolated JSON:

val bucket: Output[String] = ???

Something("thing", SomethingArgs(policyJson = json"""{
  "key": "$bucket/*"
}"""))

it should be possible to preview that policyJson is going to look like {"key": "$PLACEHOLDER/*"}. My understanding is that the entire JSON value will be a placeholder because it desugars to the equivalent of bucket.map { ... } and is too opaque to be inspected.

cc @lbialy

Metadata

Metadata

Assignees

Labels

area/coreThe SDK's core codekind/enhancementNew feature or request without workaround

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions