felangel / felangel/mason

fix: Declare brick.yaml variable as a list of strings

Open
#583 6 comments 0 reactions 1 assignee Claimed by @felangel View on GitHub
enhancement candidate
Dominant language
Dart
Stars
1.1k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

**Description**

I'd like to configure one of my brick variables to be a list of strings. I'd like to provide a default value for that list in brick.yaml.

```yaml
vars:
some_list_var:
type: array
description: Some description
default:
- This is the default option
prompt: What items do you want?
```

**Expected Behavior**

I'm prompted for a list of values, with the default set to what configuration in the brick.yaml file.

**Actual behavior**

I get an error when running mason.

**Screenshots**

![Screen Shot 2022-10-28 at 10 15 31 PM](https://user-images.githubusercontent.com/7259036/198815205-f517b115-68d8-4cfa-83a4-a933bd6b87ee.png)
In this case, the variable is named "copyright_holders"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.