Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breadcrumbs are not informative with 'allOf' if-then-else conditional subschemas #174

Open
pspot2 opened this issue Oct 27, 2022 · 0 comments

Comments

@pspot2
Copy link

pspot2 commented Oct 27, 2022

Breadcrumbs is a fantastic feature and a life-saver in big schemas. However, they badly fulfil their purpose with conditional schema composition.

For example, consider the following breadcrumb:

Property root > allOf > item 0 > then > myproperty_a

In this shape it doesn't clearly tell me which branch (with which condition) I am looking at. All it tells me is that this is a property in a branch when the (unknown) condition evaluates to true (because the keyword then is shown and not else).

In order to understand the full picture, I probably need to click on item 0, locate the If (condition) block, memorize the condition and then go back here.

It would be much more informative to reflect the condition directly in the breadcrumb. For example, either as:

Property root > allOf > If (condition) > then > myproperty_a

Property root > allOf > If (condition) > else > myproperty_b

or

Property root > allOf > (condition) > myproperty_a

Property root > allOf > Not (condition) > myproperty_b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant