oasis-open / tosca-community-contributions

OASIS TC Open Repository: Manages TOSCA profiles, tests, and templates that are maintained by the TOSCA community. They are intended to be used as examples to help developers get started with TOSCA and to test compliance of TOSCA implementations with the standard.
https://github.com/oasis-open/tosca-community-contributions
Apache License 2.0
39 stars 25 forks source link

Passing structured data to operation (e.g. how to interpret json in environment variables) #83

Open aszs opened 2 years ago

philippemerle commented 2 years ago

Passing an input of a data type to an operation is allowed by the TOSCA language. But the spec does not clearly define how this input is accessible from an operation implementation, for instance, how a bash script accesses to an environment variable containing the structured data input. Is it the issue?

lauwers commented 2 years ago

In my implementation, I encode "complex" values (i.e. maps, lists, and complex data with sub-properties) using JSON, but I pass "primitive" values un-encoded. Perhaps we should specify that all values should always be JSON-encoded.