Skip to content

Commit

Permalink
fix model generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Mityutko committed Oct 8, 2024
1 parent 0a0e3a2 commit 4a1d375
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions brickflow/bundles/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ class Config:
)


class JobsSpec(BaseModel):
class JobsEnvironmentsSpec(BaseModel):
class Config:
extra = "forbid"
protected_namespaces = ()
Expand All @@ -307,15 +307,15 @@ class Config:
)


class Jobs(BaseModel):
class JobsEnvironments(BaseModel):
class Config:
extra = "forbid"
protected_namespaces = ()

environment_key: str = Field(
..., description='The key of an environment. It has to be unique within a job.'
)
spec: Optional[JobsSpec] = None
spec: Optional[JobsEnvironmentsSpec] = None


class JobsGitSourceGitSnapshot(BaseModel):
Expand Down Expand Up @@ -2541,7 +2541,7 @@ class Config:
description='Edit mode of the job.\n\n* `UI_LOCKED`: The job is in a locked UI state and cannot be modified.\n* `EDITABLE`: The job is in an editable state and can be modified.',
)
email_notifications: Optional[JobsEmailNotifications] = None
environments: Optional[List[Jobs]] = Field(
environments: Optional[List[JobsEnvironments]] = Field(
None,
description='A list of task execution environment specifications that can be referenced by tasks of this job.',
)
Expand Down
1 change: 0 additions & 1 deletion tools/modify_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def get_name(path):
for remove_item in [
"artifacts",
"bundle",
"environments",
"include",
"resources",
"workspace",
Expand Down

0 comments on commit 4a1d375

Please sign in to comment.