fix: limit autogen json samples depth to 10

This commit is contained in:
romanhotsiy 2020-11-17 11:26:04 +02:00
parent b6d6f864a0
commit d09e744d15
No known key found for this signature in database
GPG Key ID: 0BC2221278CCBBB8

View File

@ -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 = {};