mirror of https://github.com/pulumi/pulumi.git
![]() These changes support arbitrary combinations of input + plain types within a schema. Handling plain types at the property level was not sufficient to support such combinations. Reifying these types required updating quite a bit of code. This is likely to have caused some temporary complications, but should eventually lead to substantial simplification in the SDK and program code generators. With the new design, input and optional types are explicit in the schema type system. Optionals will only appear at the outermost level of a type (i.e. Input<Optional<>>, Array<Optional<>>, etc. will not occur). In addition to explicit input types, each object type now has a "plain" shape and an "input" shape. The former uses only plain types; the latter uses input shapes wherever a plain type is not specified. Plain types are indicated in the schema by setting the "plain" property of a type spec to true. |
||
---|---|---|
.. | ||
bad-enum-1.json | ||
bad-enum-2.json | ||
bad-enum-3.json | ||
bad-enum-4.json | ||
bad-methods-1.json | ||
bad-methods-2.json | ||
bad-methods-3.json | ||
bad-methods-4.json | ||
bad-methods-5.json | ||
bad-methods-6.json | ||
good-enum-1.json | ||
good-enum-2.json | ||
good-enum-3.json | ||
good-enum-4.json | ||
good-methods-1.json |