Restrict permitted data types

User-specific data types can be restricted so that only certain data types can be transferred. As a result, when creating a binding only the symbols corresponding to the permitted data types are displayed.

The following schema defines an exemplary restriction of permissible values (oneOf). Only values that have the data type "Time" or "TimeSpan" are permitted.

{
   "$schema": "http://json-schema.org/draft-04/schema",
   "definitions": {
      "MyConstrainedDatatype": {
         "$schema": "http://json-schema.org/draft-04/schema",
         "oneOf": [
            {
               "title": "Time",
               "$ref": "tchmi:general#/definitions/DateTime"
            },
            {
               "title": "Timespan",
               "$ref": "tchmi:general#/definitions/TimeSpan"
            }
         ]
      }
   }
}

The display in Engineering is normally an attribute. However, only bindings to symbols that correspond to the permitted data types can be created.