Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"properties": {
"q": {
"type": "integer",
"description": "q"
}
},
"anyOf": [
{
"properties": {
"q": null
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
value: ok
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Cloud = false
EnvMatrix.DMS = ["", "true"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

=== top-level property whose schema is null

>>> musterr [CLI] bundle init ./top --output-dir rendered
The Databricks CLI unexpectedly had a fatal error.
Please report this issue to Databricks in the form of a GitHub issue at:
https://github.com/databricks/cli

CLI Version: [CLI_VERSION]

Panic Payload: runtime error: invalid memory address or nil pointer dereference

Stack Trace:

=== property whose schema is null in a root anyOf branch

>>> musterr [CLI] bundle init ./any-of --config-file q.json --output-dir rendered
The Databricks CLI unexpectedly had a fatal error.
Please report this issue to Databricks in the form of a GitHub issue at:
https://github.com/databricks/cli

CLI Version: [CLI_VERSION]

Panic Payload: runtime error: invalid memory address or nil pointer dereference

Stack Trace:
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"q": 1}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The panic's stack trace depends on the build, so keep it in LOG.* (shown by
# go test -v, not diffed) and drop its frames from the output.
title "top-level property whose schema is null"
trace musterr $CLI bundle init ./top --output-dir rendered 2>&1 | tee LOG.top | sed '/^goroutine /,$d'

title "property whose schema is null in a root anyOf branch"
trace musterr $CLI bundle init ./any-of --config-file q.json --output-dir rendered 2>&1 | tee LOG.any-of | sed '/^goroutine /,$d'
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Badness = "A template schema property whose schema is null (\"p\": null under properties), at the root or in a root anyOf branch, makes bundle init panic with a nil pointer dereference; it should fail with an error naming the property."
Ignore = ["rendered"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"properties": {
"p": null
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
value: ok
Loading