From d09e744d1567fd8bd288d662b4a9c94a4061ed29 Mon Sep 17 00:00:00 2001 From: romanhotsiy Date: Tue, 17 Nov 2020 11:26:04 +0200 Subject: [PATCH] fix: limit autogen json samples depth to 10 --- src/services/models/MediaType.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/models/MediaType.ts b/src/services/models/MediaType.ts index eda76e32..7807c358 100644 --- a/src/services/models/MediaType.ts +++ b/src/services/models/MediaType.ts @@ -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 = {};