Util (pdk.util)
Contains the utility structures
ValidationNodeResult
Represents the data structure for variables generated by Validator nodes.
Properties:
isValid :: pdk.core.Boolean
instanceErrors :: pdk.core.Array of pdk.util.ValidationFunctionResult data structures
attributeErrors:: pdk.core.Array of pdk.util.AttributeValidationResult data structures
Superstructures: Object <- Any
ValidationFunctionResult
Contains information about the validation function and the input arguments that were used.
Properties:
isValid :: pdk.core.Boolean
message :: pdk.core.String
arguments:: pdk.core.Array of pdk.util.ValidationFunctionArgument data structures
Superstructures: Object <- Any
AttributeValidationResult
Contains a link to the data structure attribute and the validation functions that were used to test whether the attribute is valid.
Properties:
name :: pdk.core.String
errors :: pdk.core.Array of pdk.util.ValidationFunctionResult data structures
Superstructures: Object <- Any
ValidationFunctionArgument
Contains information about the function argument and value. For example, let's take the validation function minLength(5): this function is used to check if the length of any string is at least 5. In this example, '5' is the function argument.
Properties:
name :: pdk.core.Boolean
value :: pdk.core.String
Last updated