Skip to content

Commit a87b31a

Browse files
m-kayMichael KreisHaarolean
authored
BE: Extend testcase with a recursive reference (#3314)
Fixes #2824 Co-authored-by: Michael Kreis <[email protected]> Co-authored-by: Roman Zabaluev <[email protected]>
1 parent cbb1660 commit a87b31a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kafka-ui-api/src/test/java/com/provectus/kafka/ui/util/jsonschema/ProtobufSchemaConverterTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ enum SampleEnum {
5757
message EmbeddedMsg {
5858
int32 emb_f1 = 1;
5959
TestMsg outer_ref = 2;
60+
EmbeddedMsg self_ref = 3;
6061
}
6162
}""";
6263

@@ -116,7 +117,8 @@ enum SampleEnum {
116117
"properties":
117118
{
118119
"emb_f1": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648 },
119-
"outer_ref": { "$ref": "#/definitions/test.TestMsg" }
120+
"outer_ref": { "$ref": "#/definitions/test.TestMsg" },
121+
"self_ref": { "$ref": "#/definitions/test.TestMsg.EmbeddedMsg" }
120122
}
121123
}
122124
},

0 commit comments

Comments
 (0)