From be0ad482fff84ab80f5b699b04328a525e82a274 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Wed, 4 Sep 2024 10:43:46 +0200 Subject: [PATCH] str bool --- libs/jsonschema/from_type_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/jsonschema/from_type_test.go b/libs/jsonschema/from_type_test.go index 7b83a897f..4f5c55248 100644 --- a/libs/jsonschema/from_type_test.go +++ b/libs/jsonschema/from_type_test.go @@ -42,14 +42,14 @@ func TestFromTypeBasic(t *testing.T) { }, { name: "string", - typ: reflect.TypeOf(""), + typ: reflect.TypeOf(string("")), expected: Schema{ Type: "string", }, }, { name: "bool", - typ: reflect.TypeOf(true), + typ: reflect.TypeOf(bool(true)), expected: Schema{ Type: "boolean", },