Skip to content

Commit b60a69f

Browse files
Make artifacts.*.type optional in bundle JSON schema. (#2881)
## Why It's not required for artifacts defined in DABs. We only support the "whl" value for the type field in artifacts. ## Tests Generated schema has type no longer required.
1 parent f1fbc8c commit b60a69f

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
* Fix default-python template not to add environments when serverless=yes and include\_python=no ([#2866](https://github.com/databricks/cli/pull/2866))
1818
* Fix handling of Unicode characters in Python support ([#2873](https://github.com/databricks/cli/pull/2873))
1919
* Add support for secret scopes in DABs ([#2744](https://github.com/databricks/cli/pull/2744))
20+
* Make `artifacts.*.type` optional in bundle JSON schema ([#2881](https://github.com/databricks/cli/pull/2881))
2021

2122
### API Changes

bundle/config/artifact.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type ArtifactFile struct {
2222
// Artifact defines a single local code artifact that can be
2323
// built/uploaded/referenced in the context of this bundle.
2424
type Artifact struct {
25-
Type ArtifactType `json:"type"`
25+
Type ArtifactType `json:"type,omitempty"`
2626

2727
// The local path to the directory with a root of artifact,
2828
// for example, where setup.py is for Python projects

bundle/schema/jsonschema.json

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)