@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 +6 -0
- package/package.json +1 -1
- package/test/input/2.0.0/streetlights.yml +0 -1
- package/test/input/2.0.0-rc2/streetlights.yml +0 -1
- package/test/input/2.1.0/streetlights.yml +0 -1
- package/test/input/2.2.0/streetlights.yml +0 -1
- package/test/output/2.0.0/streetlights.yml +0 -1
- package/test/output/2.0.0-rc2/streetlights.yml +0 -1
- package/test/output/2.1.0/streetlights.yml +0 -1
- package/test/output/2.2.0/streetlights.yml +0 -1
- package/test/output/2.3.0/streetlights.yml +0 -1
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