diff --git a/src/services/models/MediaType.ts b/src/services/models/MediaType.ts index 3521ba4dcf..1465995b1c 100644 --- a/src/services/models/MediaType.ts +++ b/src/services/models/MediaType.ts @@ -45,7 +45,7 @@ export class MediaTypeModel { this.examples[subSchema.title] = { value: Sampler.sample( subSchema.rawSchema, - { skipReadOnly: this.isRequestType, skipReadWrite: !this.isRequestType }, + { skipReadOnly: this.isRequestType, skipWriteOnly: !this.isRequestType }, parser.spec, ), }; @@ -55,7 +55,7 @@ export class MediaTypeModel { default: new ExampleModel(parser, { value: Sampler.sample( info.schema, - { skipReadOnly: this.isRequestType, skipReadWrite: !this.isRequestType }, + { skipReadOnly: this.isRequestType, skipWriteOnly: !this.isRequestType }, parser.spec, ), }),