My "compiler" is a scala program. If I do ```@jso...
# yaml
f
My "compiler" is a scala program. If I do
Copy code
@jsonDerive
case class Config(
  @jsonField("BookPhone:jivetelApiToken") jivetelApiToken: Option[String],
  @jsonField("BookPhone:taskQueueName") taskQueueName: Option[String]
)
(so the field is optional) then everything works. For debugging I add an
output
that contains data from PULUMI_CONFIG as well as the list of environment variables, and PULUMI_CONFIG is there as expected.
And I can see the value of
taskQueueName
that it got from deserializing it. But if I change it to
taskQueueName: String
(indicating it's a mandatory field), then it can't deserialize. In the exception that I throw (which gets printed to stderr) I include the list of environment variables, and PULUMI_CONFIG isn't there!
What is going on?
Other code changes affect it too