mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-19 19:30:32 +03:00
fix: limit autogen json samples depth to 10
This commit is contained in:
parent
b6d6f864a0
commit
d09e744d15
|
@ -53,6 +53,7 @@ export class MediaTypeModel {
|
||||||
skipReadOnly: this.isRequestType,
|
skipReadOnly: this.isRequestType,
|
||||||
skipNonRequired: this.isRequestType && this.onlyRequiredInSamples,
|
skipNonRequired: this.isRequestType && this.onlyRequiredInSamples,
|
||||||
skipWriteOnly: !this.isRequestType,
|
skipWriteOnly: !this.isRequestType,
|
||||||
|
maxSampleDepth: 10,
|
||||||
};
|
};
|
||||||
if (this.schema && this.schema.oneOf) {
|
if (this.schema && this.schema.oneOf) {
|
||||||
this.examples = {};
|
this.examples = {};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user