Nexeed object schema inaccuracy

Hello,

the ParameterVariable attribute "typeName" has the following documentation:

Only for varType VOID: The name of a struct, FB or interface type that the variable must be of. Use keyword STRUCT to allow any struct instance (not including FB instances).

However, it also works for Enums. I had just read the documentation and assumed enums wouldn't work, until a colleague made me aware they do. Please add enums to the explanation.

Best reply by nexidator

To be honest: This comment is even more incomplete than you think. It would be pushing the limits of the XML schema to explain the complete syntax of the typeName attribute. The current comment is more like an example.

  • It is possible to allow several types, devided by | (pipe)
  • You can use the name of any named type
  • For simple types, the same syntax as with varType is allowed
  • For strings the length can be specified, e.g. STRING(255)
  • These keywords also work:
    • BASICTYPE
    • NUMERIC
    • INTEGER
    • STRUCT
    • ARRAY
    • ARRAY OF ... (any of the previous)

(Enumerations are included in BASICTYPE, NUMERIC and INTEGER.)

View original
2 replies
Resolved