updated dashed and non annotated field skipping test

This commit is contained in:
Shreyas Goenka 2023-01-18 10:44:37 +01:00
parent 410ba97ebc
commit 4dfe3cea9a
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 5 additions and 2 deletions

View File

@ -643,7 +643,8 @@ func TestNonAnnotatedFieldsAreSkipped(t *testing.T) {
"bar": {
"type": "number"
}
}
},
"additionalProperties": false
}`
t.Log("[DEBUG] actual: ", string(jsonSchema))
@ -673,7 +674,8 @@ func TestDashFieldsAreSkipped(t *testing.T) {
"bar": {
"type": "number"
}
}
},
"additionalProperties": false
}`
t.Log("[DEBUG] actual: ", string(jsonSchema))
@ -682,6 +684,7 @@ func TestDashFieldsAreSkipped(t *testing.T) {
assert.Equal(t, expectedSchema, string(jsonSchema))
}
// TODO: last test to do once all the todos are done
func TestObjectSchema(t *testing.T) {
type Person struct {
Name string `json:"name"`