@@ -64,7 +64,7 @@ func (s *Service) List() (BrickListResult, error) {
6464 Description : brick .Description ,
6565 Category : brick .Category ,
6666 Status : "installed" ,
67- ModelRequired : brick .ModelRequired ,
67+ ModelRequired : brick .RequireModel ,
6868 Models : f .Map (s .modelsIndex .GetModelsByBrick (brick .ID ), func (m modelsindex.AIModel ) string {
6969 return m .ID
7070 }),
@@ -89,7 +89,7 @@ func (s *Service) AppBrickInstancesList(a *app.ArduinoApp) (AppBrickInstancesRes
8989 Author : "Arduino" , // TODO: for now we only support our bricks
9090 Category : brick .Category ,
9191 Status : "installed" ,
92- ModelRequired : brick .ModelRequired , // TODO: in case is not set by the user, should we return false?
92+ ModelRequired : brick .RequireModel , // TODO: in case is not set by the user, should we return false?
9393 ModelID : brickInstance .Model , // TODO: in case is not set by the user, should we return the default model?
9494 Variables : variablesMap , // TODO: do we want to show also the default value of not explicitly set variables?
9595 ConfigVariables : configVariables ,
@@ -123,7 +123,7 @@ func (s *Service) AppBrickInstanceDetails(a *app.ArduinoApp, brickID string) (Br
123123 Author : "Arduino" , // TODO: for now we only support our bricks
124124 Category : brick .Category ,
125125 Status : "installed" , // For now every Arduino brick are installed
126- ModelRequired : brick .ModelRequired ,
126+ ModelRequired : brick .RequireModel ,
127127 Variables : variables ,
128128 ConfigVariables : configVariables ,
129129 ModelID : modelID ,
@@ -203,7 +203,7 @@ func (s *Service) BricksDetails(id string, idProvider *app.IDProvider,
203203 Author : "Arduino" , // TODO: for now we only support our bricks
204204 Description : brick .Description ,
205205 Category : brick .Category ,
206- ModelRequired : brick .ModelRequired ,
206+ ModelRequired : brick .RequireModel ,
207207 Status : "installed" , // For now every Arduino brick are installed
208208 Variables : variables ,
209209 Readme : readme ,
0 commit comments