diff --git a/src/services/models/MediaType.ts b/src/services/models/MediaType.ts index dd87b3ef..ff471e27 100644 --- a/src/services/models/MediaType.ts +++ b/src/services/models/MediaType.ts @@ -56,7 +56,7 @@ export class MediaTypeModel { value: sample, }; } - } else { + } else if (this.schema) { this.examples = { default: new ExampleModel(parser, { value: Sampler.sample(