diff --git a/connect/cli/plugins/project/extension/templates/bootstrap/${project_slug}/${package_name}/schemas.py.j2 b/connect/cli/plugins/project/extension/templates/bootstrap/${project_slug}/${package_name}/schemas.py.j2 index 0c16e55b..498442a9 100644 --- a/connect/cli/plugins/project/extension/templates/bootstrap/${project_slug}/${package_name}/schemas.py.j2 +++ b/connect/cli/plugins/project/extension/templates/bootstrap/${project_slug}/${package_name}/schemas.py.j2 @@ -1,16 +1,20 @@ -from typing import List +from typing import List, Optional -from pydantic import BaseModel +from pydantic import BaseModel, validator class Marketplace(BaseModel): id: str name: str description: str - icon: str = ( - 'https://unpkg.com/@cloudblueconnect' - '/material-svg@latest/icons/google/language/baseline.svg' - ) + icon: Optional[str] + + @validator('icon') + def set_icon(cls, icon): + return icon or ( + 'https://unpkg.com/@cloudblueconnect' + '/material-svg@latest/icons/google/language/baseline.svg' + ) class Settings(BaseModel): diff --git a/connect/cli/plugins/project/extension/templates/bootstrap/${project_slug}/HOWTO.md.j2 b/connect/cli/plugins/project/extension/templates/bootstrap/${project_slug}/HOWTO.md.j2 index e86c797f..29c72274 100644 --- a/connect/cli/plugins/project/extension/templates/bootstrap/${project_slug}/HOWTO.md.j2 +++ b/connect/cli/plugins/project/extension/templates/bootstrap/${project_slug}/HOWTO.md.j2 @@ -25,7 +25,7 @@ $ docker compose up {{ project_slug }}_dev If you would like to develop and test at the same time, we recommend you run your project using the command: ```sh -$ docker compose up {{ project_slug }}_bash +$ docker compose run {{ project_slug }}_bash ``` Once you get the interactive shell an help banner will be displayed to inform you about the included tools that can help you with the development of your extension. @@ -34,7 +34,7 @@ Once you get the interactive shell an help banner will be displayed to inform yo Additionally, a basic boilerplate for writing unit tests has been created, you can run the tests using: ```sh -$ docker compose up {{ project_slug }}_test +$ docker compose run {{ project_slug }}_test ```