garden icon indicating copy to clipboard operation
garden copied to clipboard

0.13: [Bug]: exec#env values are being validated as "string" required instead of "primitive" required

Open jamesylgan opened this issue 1 year ago • 0 comments

Garden Bonsai (0.13) Bug

https://docs.garden.io/reference/module-types/exec#env indicates that the exec#env map should accept primitives. We previously had a boolean value, and validation forced us to change it to string type

Current Behavior

Error validating spec for Run type=exec name=********* (from module *********) (garden-base/dependencies/*********): [
{
  "code": "invalid_type",
  "expected": "string",
  "received": "boolean",
  "path": [
    "env",
    "*********"
  ],
  "message": "Expected string, received boolean"
}
]

Expected behavior

No validation occurs because booleans are an acceptable type for exec#env

jamesylgan avatar Sep 13 '23 18:09 jamesylgan