Thread
#general
    b

    brave-afternoon-91593

    5 months ago
    I’m writing a Pulumi Component Resource Provider in Golang, and would like my component resource to accept a
    map[string]string
    . I’ve added the inputProperty to my schema as
    type: object
    with no properties, required, nor default. I’m invoking this via the automation API from another golang CLI, and just getting “error: an unhandled error occurred: go inline source runtime error, an unhandled error occurred: unknown error”. Something tells me the protocol doesn’t support generic maps?
    The SDK gets generated to receive a
    pulumi.StringMapInput
    , so that’s a good sign.
    Thus, I’m able to pass it a
    pulumi.ToStringMap(map[string]string{})
    when using the SDK.
    b

    billowy-army-68599

    5 months ago
    can you show me your
    schema
    ?
    it does support this i believe
    b

    brave-afternoon-91593

    5 months ago
    We’ve already refactored to an array of key/value pairs as a typed object…. but I still wanna know, one sec