serverless-openapi-documenter 0.0.123 → 0.0.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serverless-openapi-documenter",
3
- "version": "0.0.123",
3
+ "version": "0.0.124",
4
4
  "description": "Generate OpenAPI v3 documentation and Postman Collections from your Serverless Config",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -713,7 +713,6 @@ class DefinitionGenerator {
713
713
  }
714
714
 
715
715
  if (contentKey) {
716
-
717
716
  const obj = {};
718
717
  let schema;
719
718
  if (mediaTypeDocumentation.content) {
@@ -734,7 +733,9 @@ class DefinitionGenerator {
734
733
  }
735
734
 
736
735
  if (mediaTypeDocumentation.examples) {
737
- obj.example = mediaTypeDocumentation.examples;
736
+ obj.examples = this.createExamples(
737
+ mediaTypeDocumentation.examples
738
+ );
738
739
  }
739
740
 
740
741
  schema = mediaTypeDocumentation.schema;