mirror of https://github.com/databricks/cli.git
This commit is contained in:
parent
59b731998c
commit
a2aeacc589
|
@ -740,9 +740,8 @@ func TestSliceOfPrimitivesSchema(t *testing.T) {
|
||||||
|
|
||||||
expected :=
|
expected :=
|
||||||
`{
|
`{
|
||||||
"additionalProperties": {
|
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "number"
|
||||||
},
|
},
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
|
@ -753,16 +752,6 @@ func TestSliceOfPrimitivesSchema(t *testing.T) {
|
||||||
"pattern": "\\$\\{([a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)*(\\[[0-9]+\\])*)\\}"
|
"pattern": "\\$\\{([a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)*(\\[[0-9]+\\])*)\\}"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
|
||||||
"anyOf": [
|
|
||||||
{
|
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "\\$\\{([a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\.[a-zA-Z]+([-_]?[a-zA-Z0-9]+)*(\\[[0-9]+\\])*)*(\\[[0-9]+\\])*)\\}"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}`
|
}`
|
||||||
|
|
||||||
t.Log("[DEBUG] actual: ", string(jsonSchema))
|
t.Log("[DEBUG] actual: ", string(jsonSchema))
|
||||||
|
|
Loading…
Reference in New Issue