-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathschemas.py
More file actions
19 lines (18 loc) · 722 Bytes
/
schemas.py
File metadata and controls
19 lines (18 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# schemas.py
from pydantic import BaseModel, Field
from typing import Optional
class DevContainerModel(BaseModel):
name: str = Field(description="Name of the dev container")
image: str = Field(description="Docker image to use")
forwardPorts: Optional[list[int]] = Field(
description="Ports to forward from the container to the local machine"
)
customizations: Optional[dict] = Field(
None, description="Tool-specific configuration"
)
settings: Optional[dict] = Field(
None, description="VS Code settings to configure the development environment"
)
postCreateCommand: Optional[str] = Field(
description="Command to run after creating the container"
)