mirror of https://github.com/databricks/cli.git
updated dashed and non annotated field skipping test
This commit is contained in:
parent
410ba97ebc
commit
4dfe3cea9a
|
@ -643,7 +643,8 @@ func TestNonAnnotatedFieldsAreSkipped(t *testing.T) {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"additionalProperties": false
|
||||||
}`
|
}`
|
||||||
|
|
||||||
t.Log("[DEBUG] actual: ", string(jsonSchema))
|
t.Log("[DEBUG] actual: ", string(jsonSchema))
|
||||||
|
@ -673,7 +674,8 @@ func TestDashFieldsAreSkipped(t *testing.T) {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"additionalProperties": false
|
||||||
}`
|
}`
|
||||||
|
|
||||||
t.Log("[DEBUG] actual: ", string(jsonSchema))
|
t.Log("[DEBUG] actual: ", string(jsonSchema))
|
||||||
|
@ -682,6 +684,7 @@ func TestDashFieldsAreSkipped(t *testing.T) {
|
||||||
assert.Equal(t, expectedSchema, string(jsonSchema))
|
assert.Equal(t, expectedSchema, string(jsonSchema))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: last test to do once all the todos are done
|
||||||
func TestObjectSchema(t *testing.T) {
|
func TestObjectSchema(t *testing.T) {
|
||||||
type Person struct {
|
type Person struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
|
|
Loading…
Reference in New Issue