Skip to content

Commit 9470837

Browse files
committed
create examples like we do with content style
1 parent b3e9529 commit 9470837

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/definitionGenerator.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,6 @@ class DefinitionGenerator {
713713
}
714714

715715
if (contentKey) {
716-
717716
const obj = {};
718717
let schema;
719718
if (mediaTypeDocumentation.content) {
@@ -734,7 +733,9 @@ class DefinitionGenerator {
734733
}
735734

736735
if (mediaTypeDocumentation.examples) {
737-
obj.example = mediaTypeDocumentation.examples;
736+
obj.examples = this.createExamples(
737+
mediaTypeDocumentation.examples
738+
);
738739
}
739740

740741
schema = mediaTypeDocumentation.schema;

0 commit comments

Comments
 (0)