message: polymorphic pull-thru of secondary models only when there is a discriminator value present
diff: @@ -80,6 +80,8 @@ export class ComponentsCleaner extends Transformer<any, oai.Model> {
  for (const { children: containerChildren, key: containerType } of visit(this.components)) {
  for (const { value: component, key: currentComponentUid, children: componentChildren } of containerChildren) {
  + // only apply polymorphic pull-thru on objects with a polymorphic discriminator
  + if (component?.['x-ms-discriminator-value']) {
  for (const { value: componentField, key: componentFieldName } of componentChildren) {
  switch (componentFieldName) {
  case 'allOf':
  @@ -117,6 +119,7 @@ export class ComponentsCleaner extends Transformer<any, oai.Model> {
  }
  }
  }
  + }
  } while (entryAdded);
  }
  