|
1 | 1 | # generated by datamodel-codegen:
|
2 | 2 | # filename: schema.json
|
3 |
| -# timestamp: 2025-03-26T14:07:35+00:00 |
| 3 | +# timestamp: 2025-05-08T09:34:57+00:00 |
4 | 4 | # using the command:
|
5 | 5 | # datamodel-codegen --input tests\usethis\_integrations\ci\bitbucket\schema.json --input-file-type jsonschema --output src\usethis\_integrations\ci\bitbucket\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.10
|
6 | 6 | # ruff: noqa: ERA001
|
@@ -241,17 +241,29 @@ class RunsOnItem(RootModel[str]):
|
241 | 241 |
|
242 | 242 |
|
243 | 243 | class ArtifactsUpload(BaseModel):
|
| 244 | + capture_on: Literal["success", "failed", "always"] | None = Field( |
| 245 | + default=None, |
| 246 | + alias="capture-on", |
| 247 | + description="The capture on field for the artifact.", |
| 248 | + title="Artifact Capture On", |
| 249 | + ) |
244 | 250 | depth: int | None = Field(
|
245 | 251 | default=None,
|
246 | 252 | description="The depth to search for the artifact files.",
|
247 | 253 | ge=1,
|
248 | 254 | title="Artifact Depth",
|
249 | 255 | )
|
| 256 | + ignore_paths: list[str] | None = Field( |
| 257 | + default=None, |
| 258 | + alias="ignore-paths", |
| 259 | + description="The ignore paths for the artifact.", |
| 260 | + title="Artifact Ignore Paths", |
| 261 | + ) |
250 | 262 | name: str = Field(
|
251 | 263 | ..., description="The name of the artifact.", title="Artifact Name"
|
252 | 264 | )
|
253 | 265 | paths: ArtifactsPaths
|
254 |
| - type: Literal["shared"] | None = Field( |
| 266 | + type: Literal["shared", "unshared", "test-reports"] | None = Field( |
255 | 267 | default="shared", description="The type of the artifact.", title="Artifact Type"
|
256 | 268 | )
|
257 | 269 |
|
|
0 commit comments