Simplified allOf schemas were not taking on the correct optionality (they were always required) because the root allOf context was being marked optional but all of its fragments were being left required and combination of fragments starts with an optional assumption and flips to required the first time a required fragment is encountered.
Simplified
allOf
schemas were not taking on the correct optionality (they were always required) because the rootallOf
context was being marked optional but all of its fragments were being left required and combination of fragments starts with an optional assumption and flips to required the first time a required fragment is encountered.