fix: wrong generated data model of compose spec #41

This commit is contained in:
Xyphuz 2023-01-10 21:41:50 +08:00
parent 389c5252c4
commit daa7c4dc73
2 changed files with 3 additions and 1 deletions

View file

@ -379,7 +379,7 @@ class Network(YamlModel):
driver: Optional[str] = None
driver_opts: Optional[Dict[constr(regex=r"^.+$"), Union[str, float]]] = None # type: ignore # noqa: F722
ipam: Optional[Ipam] = None
external: Optional[ExternalNetwork] = None
external: Optional[bool | ExternalNetwork] = None
internal: Optional[bool] = None
enable_ipv6: Optional[bool] = None
attachable: Optional[bool] = None

View file

@ -26,3 +26,5 @@ networks:
front-tier:
back-tier:
admin:
traefik-public:
external: true