Skip to content

Commit

Permalink
fix: limit autogen json samples depth to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Nov 17, 2020
1 parent b6d6f86 commit d09e744
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/models/MediaType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export class MediaTypeModel {
skipReadOnly: this.isRequestType,
skipNonRequired: this.isRequestType && this.onlyRequiredInSamples,
skipWriteOnly: !this.isRequestType,
maxSampleDepth: 10,
};
if (this.schema && this.schema.oneOf) {
this.examples = {};
Expand Down

0 comments on commit d09e744

Please sign in to comment.