@asyncapi/converter 0.7.1 → 0.7.2

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/lib/index.js CHANGED
@@ -182,6 +182,12 @@ function from__2_0_0_rc1__to__2_0_0_rc2(asyncapi2rc1, options) { // NOSONAR
182
182
  });
183
183
  }
184
184
 
185
+ if (result.components && result.components.parameters) {
186
+ _.each(result.components.parameters, (parameter) => {
187
+ if (parameter.name) delete parameter.name;
188
+ });
189
+ }
190
+
185
191
  if (!options.id) delete result.id;
186
192
  return result;
187
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asyncapi/converter",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Convert AsyncAPI documents from older to newer versions.",
5
5
  "bin": {
6
6
  "asyncapi-converter": "cli.js"
@@ -78,7 +78,6 @@ components:
78
78
  description: Provide your API key as the user and leave the password empty.
79
79
  parameters:
80
80
  streetlightId:
81
- name: streetlightId
82
81
  description: The ID of the streetlight.
83
82
  schema:
84
83
  type: string
@@ -78,7 +78,6 @@ components:
78
78
  description: Provide your API key as the user and leave the password empty.
79
79
  parameters:
80
80
  streetlightId:
81
- name: streetlightId
82
81
  description: The ID of the streetlight.
83
82
  schema:
84
83
  type: string
@@ -78,7 +78,6 @@ components:
78
78
  description: Provide your API key as the user and leave the password empty.
79
79
  parameters:
80
80
  streetlightId:
81
- name: streetlightId
82
81
  description: The ID of the streetlight.
83
82
  schema:
84
83
  type: string
@@ -78,7 +78,6 @@ components:
78
78
  description: Provide your API key as the user and leave the password empty.
79
79
  parameters:
80
80
  streetlightId:
81
- name: streetlightId
82
81
  description: The ID of the streetlight.
83
82
  schema:
84
83
  type: string
@@ -78,7 +78,6 @@ components:
78
78
  description: Provide your API key as the user and leave the password empty.
79
79
  parameters:
80
80
  streetlightId:
81
- name: streetlightId
82
81
  description: The ID of the streetlight.
83
82
  schema:
84
83
  type: string
@@ -78,7 +78,6 @@ components:
78
78
  description: Provide your API key as the user and leave the password empty.
79
79
  parameters:
80
80
  streetlightId:
81
- name: streetlightId
82
81
  description: The ID of the streetlight.
83
82
  schema:
84
83
  type: string
@@ -78,7 +78,6 @@ components:
78
78
  description: Provide your API key as the user and leave the password empty.
79
79
  parameters:
80
80
  streetlightId:
81
- name: streetlightId
82
81
  description: The ID of the streetlight.
83
82
  schema:
84
83
  type: string
@@ -78,7 +78,6 @@ components:
78
78
  description: Provide your API key as the user and leave the password empty.
79
79
  parameters:
80
80
  streetlightId:
81
- name: streetlightId
82
81
  description: The ID of the streetlight.
83
82
  schema:
84
83
  type: string
@@ -78,7 +78,6 @@ components:
78
78
  description: Provide your API key as the user and leave the password empty.
79
79
  parameters:
80
80
  streetlightId:
81
- name: streetlightId
82
81
  description: The ID of the streetlight.
83
82
  schema:
84
83
  type: string