message: fix: discriminator field doesn't change in examples
  fixes
diff: @@ -42,12 +42,18 @@ export class MediaTypeModel {
  if (this.schema && this.schema.oneOf) {
  this.examples = {};
  for (const subSchema of this.schema.oneOf) {
  - this.examples[subSchema.title] = {
  - value: Sampler.sample(
  + const sample = Sampler.sample(
  subSchema.rawSchema,
  { skipReadOnly: this.isRequestType, skipWriteOnly: !this.isRequestType },
  parser.spec,
  - ),
  + );
  +
  + if (this.schema.discriminatorProp && typeof sample === 'object' && sample) {
  + sample[this.schema.discriminatorProp] = subSchema.title;
  + }
  +
  + this.examples[subSchema.title] = {
  + value: sample,
  };
  }
  } else {
  