felangel / felangel/mason

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

Abierto
#583 6 comentarios 0 reacciones 1 asignado Reclamado por @felangel Ver en GitHub
enhancement candidate
Lenguaje dominante
Dart
Estrellas
1.1k
Forks
113
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**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"

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.