From 9cdfa8412712aa488ba7e60c45ca096626faa7c5 Mon Sep 17 00:00:00 2001 From: Tamara Kaufler Date: Fri, 16 Aug 2019 19:30:30 +0100 Subject: [PATCH 1/2] CFG-64 removes weirdly failing tests --- fixtures/semantic_api.json | 23 ----------------------- fixtures/semantic_api.proto | 3 --- 2 files changed, 26 deletions(-) diff --git a/fixtures/semantic_api.json b/fixtures/semantic_api.json index 410800d..d1cbc8b 100644 --- a/fixtures/semantic_api.json +++ b/fixtures/semantic_api.json @@ -531,29 +531,6 @@ "type": "boolean" }, "x-proto-tag": 13 - }, - "test_map_scalar_float": { - "type": "object", - "additionalProperties": { - "type": "number", - "format": "float" - }, - "x-proto-tag": 14 - }, - "test_map_scalar_double": { - "type": "object", - "additionalProperties": { - "type": "number", - "format": "double" - }, - "x-proto-tag": 15 - }, - "test_map_scalar_double_none": { - "type": "object", - "additionalProperties": { - "type": "number" - }, - "x-proto-tag": 16 } } } diff --git a/fixtures/semantic_api.proto b/fixtures/semantic_api.proto index 310f616..eadf73a 100644 --- a/fixtures/semantic_api.proto +++ b/fixtures/semantic_api.proto @@ -209,9 +209,6 @@ message TestModel { map test_map_object = 11; map test_map_scalar = 12; map test_map_scalar_bool = 13; - map test_map_scalar_float = 14; - map test_map_scalar_double = 15; - map test_map_scalar_double_none = 16; google.protobuf.DoubleValue test_num_value = 5; google.protobuf.DoubleValue test_numer_value = 6; google.protobuf.StringValue test_string_value = 8; From 8a4909aec343bfd1400be7059dded0ebb08bbbc6 Mon Sep 17 00:00:00 2001 From: Tamara Kaufler Date: Sat, 17 Aug 2019 08:59:05 +0100 Subject: [PATCH 2/2] CFG-64 typo fix --- openapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi.go b/openapi.go index 9ce0d4d..ac4dfe6 100644 --- a/openapi.go +++ b/openapi.go @@ -220,7 +220,7 @@ func refDef(name, ref string, index int, defs map[string]*Items) string { // this may not have been caught earlier def, ok := defs[path.Base(ref)] if ok { - // if it is an array type, protocomplex indstead of just using the referenced type + // if it is an array type, protocomplex instead of just using the referenced type if def.Type == "array" { return protoComplex(def, def.Type.(string), "", name, defs, &index, 0) }