Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Where licence tag should be placed in package-manifest file?

Where licence tag should be placed in package-manifest file?

jawad
Long-established Member

Hi 
I am adding licence information in package-manifest file, when i add tag in it , it shows me Property liences are not allowed

here is my package-manifest file and screen shot is also attached.

 
{
  "version": "1.0.0",
  "id": "AAAAA",
  "services": {
    "proxyMapping": [
      {
        "binding": "unix://{$PACKAGE_WWW_SOCKET}",
        "name": "AAAAA",
        "url": "http://000.000.0.0:0000"
      }
    ]
  },
    "licenses": [
      {
        "name": "sssssss",
        "title": "AAAAA HMI",
        "description": "AAAAA  ",
        "required": true
      }
    ],
    "menus": {
      "sidebar": [
        {
          "id": "AAAAA",
          "target": "_blank",
          "title": "AAAAA",
          "icon": "Bosch-Ic-home-outline",
          "link": "http://000.000.0.0:0000"
        }
      ],
      "settings": [
      ],
      "overview": [
        {
          "id": "webserver",
          "target": "_blank",
          "title": "AAAAA",
          "icon": "Bosch-Ic-home-outline",
          "link": "http://000.000.0.0:0000"
        }
      ]
         
    }
  }

jawad_0-1708516652959.png

Note: Name and IP are hidden intentionally

5 REPLIES 5

CodeShepherd
Community Moderator
Community Moderator

Moved to corresponding sub forum SDK.

The general JSON schema description is already mentioned. It can be found on GitHub.

General documentation about the mechanism is also available on Github.

Where is the error shown you are referring to?

jawad
Long-established Member

Hi Thanks @CodeShepherd 
According to documentation licenses should be added into package-manifest.json

jawad_0-1708518315155.png

In my case when i added these licences array in manifest file (below services tag) it shows me warning message Property licence is not allowed. Please check attached screenshot

jawad_1-1708518471423.png

 

I haven't  find licence related examples in general json schema. 

 




CodeShepherd
Community Moderator
Community Moderator

The package manifest is the correct location. But unfortunately it seems to be missing in the JSON schema file. We will add it in a reworked version. Thanks for mentioning.

Independent of the warning shown by the linter the functionality is available. Feel free to e.g. take any ctrlX OS app as a reference.

jawad
Long-established Member

Hi @CodeShepherd Thanks
Can you please share ctrlX OS app example link?

CodeShepherd
Community Moderator
Community Moderator

One example you already mentioned can be found in the licensing documentation on GitHub.

Or like I mentioned you can have a look into any ctrlX OS app, e.g. the "ctrlX OS - OPC UA Server" app. Simply unzip the app and checkout the package manifest file.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist