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
Expectation: test_propertyA and test_propertyB have the Required badge as they are marked as required in their respective 'then' branch of the 'allOf' schema composition. E.g.:
Actual result: badges are not added (and there is no other information in the document that those properties are required).
One could argue that the 'if-then' schema composition is conditional by nature, e.g. it is hard to say something is required there. But this is the perspective of the parent schema. From the perspective of each branch - once that branch is selected - everything that it contains should be rendered accordingly, including the required properties.
In my specific real-life scenario, my schema is quite big with lots of nesting levels. Schema composition branches start very close to the root schema, and as a result I'm not getting any badges for the majority of my tree.
Note: this seems to happen only when schema composition has more than one subschema (more than 1 branch in the current example). If I remove the second branch, badges re-appear in the single remaining one.
The text was updated successfully, but these errors were encountered:
Please refer to examples in issue #169.
Expectation:
test_propertyA
andtest_propertyB
have theRequired
badge as they are marked as required in their respective 'then' branch of the 'allOf' schema composition. E.g.:Property
root > allOf > item 0 > then > test_propertyA
Property
root > allOf > item 1 > then > test_propertyB
Actual result: badges are not added (and there is no other information in the document that those properties are required).
One could argue that the 'if-then' schema composition is conditional by nature, e.g. it is hard to say something is required there. But this is the perspective of the parent schema. From the perspective of each branch - once that branch is selected - everything that it contains should be rendered accordingly, including the required properties.
In my specific real-life scenario, my schema is quite big with lots of nesting levels. Schema composition branches start very close to the root schema, and as a result I'm not getting any badges for the majority of my tree.
Note: this seems to happen only when schema composition has more than one subschema (more than 1 branch in the current example). If I remove the second branch, badges re-appear in the single remaining one.
The text was updated successfully, but these errors were encountered: