You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the preview reports what is presented in Screenshot1
As you can see r2 is of type Record2 which equal (structure-wise) to Record1 (used by r1).
However, the report for r2 is "Adheres to: Any or null" while the report for r1 is: "Adheres to Object or null".
This inconsistent reporting seems to be related with having a nested field (in this case of type CommonChildRecord) marked as nullable. But the issue for some reason does not affect the first record.
Now if I make the nested field not nullable, there is no issue, even if the parent is nullable. (rendering of cases of r3 and r4 reports: "Adheres to Object or null")
The above issue also affects the payload in the examples section: see below:
Expected behavior
For r2 the adheres to should be Object containing a a field of type String
Describe the bug.
In the following asyncapi document
the preview reports what is presented in Screenshot1
As you can see
r2
is of typeRecord2
which equal (structure-wise) toRecord1
(used byr1
).However, the report for
r2
is "Adheres to: Any or null" while the report forr1
is: "Adheres to Object or null".This inconsistent reporting seems to be related with having a nested field (in this case of type
CommonChildRecord
) marked as nullable. But the issue for some reason does not affect the first record.Now if I make the nested field not nullable, there is no issue, even if the parent is nullable. (rendering of cases of r3 and r4 reports: "Adheres to Object or null")
The above issue also affects the payload in the examples section: see below:
Expected behavior
For r2 the adheres to should be Object containing a a field of type
String
Screenshots
Screenshot1:
How to Reproduce
r2/child2
is presented with "Adheres to Any" while r1/child1 is shown correctly.🥦 Browser
Google Chrome
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
No, someone else can work on it
The text was updated successfully, but these errors were encountered: