AssetMap, CPL and PKL Metadata Definitions (JSON)

Example Metadata for an Asset Map

{
  "definitionId": 101836,
  "name": "root",
  "definition": [
    {
      "id": 101837,
      "name": "id",
      "displayName": "Id",
      "description": null,
      "type": "string",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "text",
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": []
    },
    {
      "id": 101838,
      "name": "annotation-text",
      "displayName": "Annotation Text",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101839,
          "name": "annotation-text-value",
          "displayName": "Annotation Text Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101840,
          "name": "annotation-text-language",
          "displayName": "Annotation Text Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101841,
      "name": "creator",
      "displayName": "Creator",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101842,
          "name": "creator-value",
          "displayName": "Creator Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101843,
          "name": "creator-language",
          "displayName": "Creator Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101844,
      "name": "volume-count",
      "displayName": "Volume Count",
      "description": null,
      "type": "integer",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "text",
      "format": "#",
      "formatDescription": "#",
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": []
    },
    {
      "id": 101845,
      "name": "issue-date",
      "displayName": "Issue Date",
      "description": null,
      "type": "time",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "time",
      "format": "yyyy-MM-dd HH:mm:ss",
      "formatDescription": "yyyy-MM-dd HH:mm:ss",
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "timeZone": "UTC",
      "locale": "en_GB"
    },
    {
      "id": 101846,
      "name": "issuer",
      "displayName": "Issuer",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101847,
          "name": "issuer-value",
          "displayName": "Issuer Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101848,
          "name": "issuer-language",
          "displayName": "Issuer Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    }
  ],
  "rules": [
    {
      "source": {
        "id": 101837,
        "name": "id",
        "expression": "{true}",
        "path": "root:id[0]"
      },
      "targets": [
        {
          "id": 101840,
          "name": "annotation-text-language",
          "path": "root:annotation-text[1]:annotation-text-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        },
        {
          "id": 101843,
          "name": "creator-language",
          "path": "root:creator[2]:creator-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        },
        {
          "id": 101848,
          "name": "issuer-language",
          "path": "root:issuer[5]:issuer-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        }
      ]
    }
  ]
}          

Example Metadata for a CPL

{
  "definitionId": 101757,
  "name": "root",
  "definition": [
    {
      "id": 101758,
      "name": "id",
      "displayName": "Id",
      "description": null,
      "type": "string",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "text",
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": []
    },
    {
      "id": 101759,
      "name": "issue-date",
      "displayName": "Issue Date",
      "description": null,
      "type": "time",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "time",
      "format": "yyyy-MM-dd HH:mm:ss",
      "formatDescription": "yyyy-MM-dd HH:mm:ss",
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "timeZone": "UTC",
      "locale": "en_GB"
    },
    {
      "id": 101760,
      "name": "content-title",
      "displayName": "Content Title",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101761,
          "name": "content-title-value",
          "displayName": "Content Title Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101762,
          "name": "content-title-language",
          "displayName": "Content Title Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101763,
      "name": "content-kind",
      "displayName": "Content Kind",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101764,
          "name": "content-kind-value",
          "displayName": "Content Kind Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101765,
          "name": "content-kind-scope",
          "displayName": "Content Kind Scope",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101766,
      "name": "content-originator",
      "displayName": "Content Originator",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101767,
          "name": "content-originator-value",
          "displayName": "Content Originator Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101768,
          "name": "content-originator-language",
          "displayName": "Content Originator Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101769,
      "name": "annotation",
      "displayName": "Annotation",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101770,
          "name": "annotation-value",
          "displayName": "Annotation Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101771,
          "name": "annotation-language",
          "displayName": "Annotation Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101772,
      "name": "creator",
      "displayName": "Creator",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101773,
          "name": "creator-value",
          "displayName": "Creator Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101774,
          "name": "creator-language",
          "displayName": "Creator Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101775,
      "name": "issuer",
      "displayName": "Issuer",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101776,
          "name": "issuer-value",
          "displayName": "Issuer Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101777,
          "name": "issuer-language",
          "displayName": "Issuer Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101778,
      "name": "schema-version",
      "displayName": "Schema Version",
      "description": null,
      "type": "string",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "text",
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": []
    },
    {
      "id": 101779,
      "name": "edit-rate",
      "displayName": "Edit Rate",
      "description": null,
      "type": "long",
      "multiplicity": "1..*",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "text",
      "format": "#,##0.###",
      "formatDescription": "#,##0.###",
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": []
    },
    {
      "id": 101780,
      "name": "content-version-list",
      "displayName": "Content Version List",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101781,
          "name": "content-version",
          "displayName": "Content Version",
          "description": null,
          "type": "complex",
          "multiplicity": "1..*",
          "searchable": false,
          "editable": false,
          "required": false,
          "formType": null,
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": [],
          "children": [
            {
              "id": 101782,
              "name": "content-version-id",
              "displayName": "Content Version Id",
              "description": null,
              "type": "string",
              "searchable": false,
              "editable": true,
              "required": false,
              "formType": "text",
              "format": null,
              "formatDescription": null,
              "validation": null,
              "maxLength": -1,
              "expressionEnabled": false,
              "validationDescription": null,
              "validationHandler": null,
              "valueGeneratorType": null,
              "unitString": null,
              "commentable": false,
              "isVisible": true,
              "preProcessors": []
            },
            {
              "id": 101783,
              "name": "label-text",
              "displayName": "Label Text",
              "description": null,
              "type": "complex",
              "searchable": false,
              "editable": false,
              "required": false,
              "formType": null,
              "format": null,
              "formatDescription": null,
              "validation": null,
              "maxLength": -1,
              "expressionEnabled": false,
              "validationDescription": null,
              "validationHandler": null,
              "valueGeneratorType": null,
              "unitString": null,
              "commentable": false,
              "isVisible": true,
              "preProcessors": [],
              "children": [
                {
                  "id": 101784,
                  "name": "label-text-value",
                  "displayName": "Label Text Value",
                  "description": null,
                  "type": "string",
                  "searchable": false,
                  "editable": true,
                  "required": false,
                  "formType": "text",
                  "format": null,
                  "formatDescription": null,
                  "validation": null,
                  "maxLength": -1,
                  "expressionEnabled": false,
                  "validationDescription": null,
                  "validationHandler": null,
                  "valueGeneratorType": null,
                  "unitString": null,
                  "commentable": false,
                  "isVisible": true,
                  "preProcessors": []
                },
                {
                  "id": 101785,
                  "name": "label-text-language",
                  "displayName": "Label Text Language",
                  "description": null,
                  "type": "string",
                  "searchable": false,
                  "editable": true,
                  "required": false,
                  "formType": "text",
                  "format": null,
                  "formatDescription": null,
                  "validation": null,
                  "maxLength": -1,
                  "expressionEnabled": false,
                  "validationDescription": null,
                  "validationHandler": null,
                  "valueGeneratorType": null,
                  "unitString": null,
                  "commentable": false,
                  "isVisible": true,
                  "preProcessors": []
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": 101786,
      "name": "locale-list",
      "displayName": "Locale List",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101787,
          "name": "locale",
          "displayName": "Locale",
          "description": null,
          "type": "complex",
          "multiplicity": "1..*",
          "searchable": false,
          "editable": false,
          "required": false,
          "formType": null,
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": [],
          "children": [
            {
              "id": 101788,
              "name": "locale-annotation",
              "displayName": "Locale Annotation",
              "description": null,
              "type": "complex",
              "searchable": false,
              "editable": false,
              "required": false,
              "formType": null,
              "format": null,
              "formatDescription": null,
              "validation": null,
              "maxLength": -1,
              "expressionEnabled": false,
              "validationDescription": null,
              "validationHandler": null,
              "valueGeneratorType": null,
              "unitString": null,
              "commentable": false,
              "isVisible": true,
              "preProcessors": [],
              "children": [
                {
                  "id": 101789,
                  "name": "locale-annotation-value",
                  "displayName": "Locale Annotation Value",
                  "description": null,
                  "type": "string",
                  "searchable": false,
                  "editable": true,
                  "required": false,
                  "formType": "text",
                  "format": null,
                  "formatDescription": null,
                  "validation": null,
                  "maxLength": -1,
                  "expressionEnabled": false,
                  "validationDescription": null,
                  "validationHandler": null,
                  "valueGeneratorType": null,
                  "unitString": null,
                  "commentable": false,
                  "isVisible": true,
                  "preProcessors": []
                },
                {
                  "id": 101790,
                  "name": "locale-annotation-language",
                  "displayName": "Locale Annotation Language",
                  "description": null,
                  "type": "string",
                  "searchable": false,
                  "editable": true,
                  "required": false,
                  "formType": "text",
                  "format": null,
                  "formatDescription": null,
                  "validation": null,
                  "maxLength": -1,
                  "expressionEnabled": false,
                  "validationDescription": null,
                  "validationHandler": null,
                  "valueGeneratorType": null,
                  "unitString": null,
                  "commentable": false,
                  "isVisible": true,
                  "preProcessors": []
                }
              ]
            },
            {
              "id": 101791,
              "name": "content-maturity-list",
              "displayName": "Content Maturity List",
              "description": null,
              "type": "complex",
              "searchable": false,
              "editable": false,
              "required": false,
              "formType": null,
              "format": null,
              "formatDescription": null,
              "validation": null,
              "maxLength": -1,
              "expressionEnabled": false,
              "validationDescription": null,
              "validationHandler": null,
              "valueGeneratorType": null,
              "unitString": null,
              "commentable": false,
              "isVisible": true,
              "preProcessors": [],
              "children": [
                {
                  "id": 101792,
                  "name": "content-maturity",
                  "displayName": "Content Maturity",
                  "description": null,
                  "type": "complex",
                  "multiplicity": "1..*",
                  "searchable": false,
                  "editable": false,
                  "required": false,
                  "formType": null,
                  "format": null,
                  "formatDescription": null,
                  "validation": null,
                  "maxLength": -1,
                  "expressionEnabled": false,
                  "validationDescription": null,
                  "validationHandler": null,
                  "valueGeneratorType": null,
                  "unitString": null,
                  "commentable": false,
                  "isVisible": true,
                  "preProcessors": [],
                  "children": [
                    {
                      "id": 101793,
                      "name": "agency",
                      "displayName": "Agency",
                      "description": null,
                      "type": "string",
                      "searchable": false,
                      "editable": true,
                      "required": false,
                      "formType": "text",
                      "format": null,
                      "formatDescription": null,
                      "validation": null,
                      "maxLength": -1,
                      "expressionEnabled": false,
                      "validationDescription": null,
                      "validationHandler": null,
                      "valueGeneratorType": null,
                      "unitString": null,
                      "commentable": false,
                      "isVisible": true,
                      "preProcessors": []
                    },
                    {
                      "id": 101794,
                      "name": "rating",
                      "displayName": "Rating",
                      "description": null,
                      "type": "string",
                      "searchable": false,
                      "editable": true,
                      "required": false,
                      "formType": "text",
                      "format": null,
                      "formatDescription": null,
                      "validation": null,
                      "maxLength": -1,
                      "expressionEnabled": false,
                      "validationDescription": null,
                      "validationHandler": null,
                      "valueGeneratorType": null,
                      "unitString": null,
                      "commentable": false,
                      "isVisible": true,
                      "preProcessors": []
                    }
                  ]
                }
              ]
            },
            {
              "id": 101795,
              "name": "language-list",
              "displayName": "Language List",
              "description": null,
              "type": "string",
              "multiplicity": "1..*",
              "searchable": false,
              "editable": true,
              "required": false,
              "formType": "text",
              "format": null,
              "formatDescription": null,
              "validation": null,
              "maxLength": -1,
              "expressionEnabled": false,
              "validationDescription": null,
              "validationHandler": null,
              "valueGeneratorType": null,
              "unitString": null,
              "commentable": false,
              "isVisible": true,
              "preProcessors": []
            },
            {
              "id": 101796,
              "name": "region-list",
              "displayName": "Region List",
              "description": null,
              "type": "string",
              "multiplicity": "1..*",
              "searchable": false,
              "editable": true,
              "required": false,
              "formType": "text",
              "format": null,
              "formatDescription": null,
              "validation": null,
              "maxLength": -1,
              "expressionEnabled": false,
              "validationDescription": null,
              "validationHandler": null,
              "valueGeneratorType": null,
              "unitString": null,
              "commentable": false,
              "isVisible": true,
              "preProcessors": []
            }
          ]
        }
      ]
    }
  ],
  "rules": [
    {
      "source": {
        "id": 101758,
        "name": "id",
        "expression": "{true}",
        "path": "root:id[0]"
      },
      "targets": [
        {
          "id": 101762,
          "name": "content-title-language",
          "path": "root:content-title[2]:content-title-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        },
        {
          "id": 101768,
          "name": "content-originator-language",
          "path": "root:content-originator[4]:content-originator-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        },
        {
          "id": 101771,
          "name": "annotation-language",
          "path": "root:annotation[5]:annotation-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        },
        {
          "id": 101774,
          "name": "creator-language",
          "path": "root:creator[6]:creator-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        },
        {
          "id": 101777,
          "name": "issuer-language",
          "path": "root:issuer[7]:issuer-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        },
        {
          "id": 101785,
          "name": "label-text-language",
          "path": "root:content-version-list[10]:content-version[0]:label-text[1]:label-text-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        },
        {
          "id": 101790,
          "name": "locale-annotation-language",
          "path": "root:locale-list[11]:locale[0]:locale-annotation[0]:locale-annotation-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        }
      ]
    }
  ]
}
      

Example Metadata for a PKL

{
  "definitionId": 101862,
  "name": "root",
  "definition": [
    {
      "id": 101863,
      "name": "id",
      "displayName": "Id",
      "description": null,
      "type": "string",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "text",
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": []
    },
    {
      "id": 101864,
      "name": "annotation-text",
      "displayName": "Annotation Text",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101865,
          "name": "annotation-text-value",
          "displayName": "Annotation Text Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101866,
          "name": "annotation-text-language",
          "displayName": "Annotation Text Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101867,
      "name": "icon-id",
      "displayName": "Icon Id",
      "description": null,
      "type": "string",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "text",
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": []
    },
    {
      "id": 101868,
      "name": "issue-date",
      "displayName": "Issue Date",
      "description": null,
      "type": "time",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "time",
      "format": "yyyy-MM-dd HH:mm:ss",
      "formatDescription": "yyyy-MM-dd HH:mm:ss",
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "timeZone": "UTC",
      "locale": "en_GB"
    },
    {
      "id": 101869,
      "name": "issuer",
      "displayName": "Issuer",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101870,
          "name": "issuer-value",
          "displayName": "Issuer Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101871,
          "name": "issuer-language",
          "displayName": "Issuer Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101872,
      "name": "creator",
      "displayName": "Creator",
      "description": null,
      "type": "complex",
      "searchable": false,
      "editable": false,
      "required": false,
      "formType": null,
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": [],
      "children": [
        {
          "id": 101873,
          "name": "creator-value",
          "displayName": "Creator Value",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        },
        {
          "id": 101874,
          "name": "creator-language",
          "displayName": "Creator Language",
          "description": null,
          "type": "string",
          "searchable": false,
          "editable": true,
          "required": false,
          "formType": "text",
          "format": null,
          "formatDescription": null,
          "validation": null,
          "maxLength": -1,
          "expressionEnabled": false,
          "validationDescription": null,
          "validationHandler": null,
          "valueGeneratorType": null,
          "unitString": null,
          "commentable": false,
          "isVisible": true,
          "preProcessors": []
        }
      ]
    },
    {
      "id": 101875,
      "name": "group-id",
      "displayName": "Group Id",
      "description": null,
      "type": "string",
      "searchable": false,
      "editable": true,
      "required": false,
      "formType": "text",
      "format": null,
      "formatDescription": null,
      "validation": null,
      "maxLength": -1,
      "expressionEnabled": false,
      "validationDescription": null,
      "validationHandler": null,
      "valueGeneratorType": null,
      "unitString": null,
      "commentable": false,
      "isVisible": true,
      "preProcessors": []
    }
  ],
  "rules": [
    {
      "source": {
        "id": 101863,
        "name": "id",
        "expression": "{true}",
        "path": "root:id[0]"
      },
      "targets": [
        {
          "id": 101866,
          "name": "annotation-text-language",
          "path": "root:annotation-text[1]:annotation-text-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        },
        {
          "id": 101871,
          "name": "issuer-language",
          "path": "root:issuer[4]:issuer-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        },
        {
          "id": 101874,
          "name": "creator-language",
          "path": "root:creator[5]:creator-language[1]",
          "options": [
            {
              "type": "setVisible",
              "value": false
            }
          ]
        }
      ]
    }
  ]
}
    
https://help.ooyala.com/sites/all/libraries/dita/en/media-logistics/flex/user/70/imp_appendix_metadata_definition_json.html

Was this article helpful?