From 4dfe3cea9a9bb460f327ca78277c5eb1ccd1398a Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Wed, 18 Jan 2023 10:44:37 +0100 Subject: [PATCH] updated dashed and non annotated field skipping test --- bundle/schema/schema_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bundle/schema/schema_test.go b/bundle/schema/schema_test.go index 5acc0b77e..09a1bf5c3 100644 --- a/bundle/schema/schema_test.go +++ b/bundle/schema/schema_test.go @@ -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"`