From 74627160cb88e5e18e922d5faa15d06d05e7cfa3 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Mon, 22 May 2023 12:31:18 +0200 Subject: [PATCH] - --- libs/template/schema_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/template/schema_test.go b/libs/template/schema_test.go index cac1da81..41afc0bb 100644 --- a/libs/template/schema_test.go +++ b/libs/template/schema_test.go @@ -216,6 +216,8 @@ func TestTemplateSchemaValidateConfig(t *testing.T) { func TestTemplateSchemaValidateConfigFailsForUnknownField(t *testing.T) { // define schema for config schemaJson := `{ + "version": 0, + "properties": { "int_val": { "type": "integer" }, @@ -228,7 +230,8 @@ func TestTemplateSchemaValidateConfigFailsForUnknownField(t *testing.T) { "string_val": { "type": "string" } - }` + } + }` var schema Schema err := json.Unmarshal([]byte(schemaJson), &schema) require.NoError(t, err)