@manyos/smileconnect-api 1.72.1 → 1.72.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/docs/releases.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Release Notes
2
2
 
3
3
  ## API
4
+ ### 1.72.2 - 14.11.25
5
+ Remove cmdbObjects from openApi spec when no fields are defined.
6
+
4
7
  ### 1.72.1 - 13.11.25
5
8
  Improve OpenAPI Documentation generation. Add requestBody for POST and put requests. Allow custom definition for scriptendpoints.
6
9
 
@@ -294,6 +297,10 @@ Update Record added to [Remedy Adapter](adapter#remedy).
294
297
  The eventmanager will check all outbound webhooks for an event. If one fails, the whole Event will be set to error and the details will be added to the error message.
295
298
 
296
299
  ## GUI
300
+ ### 1.15.0 - 14.11.25
301
+
302
+ Feat: Add Open API Specs Configuration to ScriptEndpoints
303
+
297
304
  ### 1.14.1 - 25.03.25
298
305
 
299
306
  Feat: Add Script Endpoints Config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manyos/smileconnect-api",
3
- "version": "1.72.1",
3
+ "version": "1.72.2",
4
4
  "description": "A proxy and abstraction layer for BMCs IT Service Management Suite",
5
5
  "main": "app.js",
6
6
  "scripts": {
package/util/config.js CHANGED
@@ -521,11 +521,10 @@ async function getDesignPackage(clientId) {
521
521
  //generate docs for cmdb
522
522
  const cmdbMapping = getDeprecatedMappingAsCustom('cmdbobject')
523
523
 
524
- if (clientConfig.cmdbobject && clientConfig.cmdbobject.fields) {
524
+ if (clientConfig.cmdbobject && clientConfig.cmdbobject.fields && clientConfig.cmdbobject.fields.length > 0) {
525
525
  schemas['cmdbobject'] = await getObjectSchema(clientConfig.cmdbobject.fields, cmdbMapping, 'AST:BaseElement')
526
526
  schemas['cmdbobject_create_update'] = await getObjectSchema(clientConfig.cmdbobject.fields, cmdbMapping, 'AST:BaseElement', true)
527
527
 
528
-
529
528
  const cmdbdef = Object.keys(clientConfig.cmdbobject)
530
529
  const classConfigs = cmdbdef.filter(item => item.startsWith('fields_'))
531
530
  const cmdbSchemaList = ['cmdbobject']