perfectsense / gyro

Gyro is a command-line tool for creating, updating, and maintaining cloud infrastructure. Gyro makes infrastructure-as-code possible.
https://gyro.dev
Apache License 2.0
134 stars 7 forks source link

Validate enum type fields #329

Closed deepanjan90 closed 3 years ago

deepanjan90 commented 3 years ago

Describe the bug No validation available for enum type fields.

Enum type fields if misconfigured, does not complain but rather just sets the value to be null.

This poses two major issues:

To Reproduce Gyro up a resource having an enum type field, configured with a value for the field that is not supported by the enum.

Expected behavior A Clear gyro error stating the misconfigured field, followed by allowed values.