Repository navigation
Conversation
@Xarno you'll need to fully review the code first then. Additionally, before the PR can go up we'll need to identity multiple options for different designs as I don't believe the current implementation handles all the potential edge cases, realistically then if then, really needs to be rendered the same was the complex type "one of". I would expect it work almost identically, the one exception being the description of the condition. |
|
I am open for a different display of the if/then. I am not sure if a synthetic one of display helps here, how much should it repeat? All fields and then there is one tiny difference? But if you change a $ref on the other hand it would be quite broad and would probably look better in a new table row. The json schema says if then can be stand alone, multiple variants need to be wrapped in allOf Array. I think the pullrequest will currently handle only the allOf wrapped case. https://json-schema.org/understanding-json-schema/reference/conditionals#ifthenelse |
|
I see one of and if/else to be exactly the same implementation with the only difference being the description and key name display. Since one of code already handles everything, an exact duplicate of that code seems like the best approach, it should solve all our needs and automatically handle all edge cases. I don't know what you mean by "stand alone" here. Us there a specific schema you have that would not be handled by the suggestion? |
Add the display of if then else.
Implements #323
Disclosure: Was entirely written by claude code.