Skip to content

Commit

Permalink
rename samplerOption to samplerOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy authored Oct 5, 2018
1 parent 84f3a25 commit 57e0d10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/services/models/MediaType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class MediaTypeModel {
}

generateExample(parser: OpenAPIParser, info: OpenAPIMediaType) {
const samplerOption = {
const samplerOptions = {
skipReadOnly: this.isRequestType,
skipNonRequired: this.isRequestType && this.onlyRequiredInSamples,
skipWriteOnly: !this.isRequestType,
Expand All @@ -51,7 +51,7 @@ export class MediaTypeModel {
for (const subSchema of this.schema.oneOf) {
const sample = Sampler.sample(
subSchema.rawSchema,
samplerOption,
samplerOptions,
parser.spec,
);

Expand All @@ -68,7 +68,7 @@ export class MediaTypeModel {
default: new ExampleModel(parser, {
value: Sampler.sample(
info.schema,
samplerOption,
samplerOptions,
parser.spec,
),
}),
Expand Down

0 comments on commit 57e0d10

Please sign in to comment.