ecl-logo Documentation

ValidUploadQ

ValidUploadQ[upload]bool

checks whether upload contains valid object creation/update rules.

Details

  • ValidUploadQ is called by Upload to ensure that the specified rules conform to the type definitions.
  • When updating any multiple field, Append|Replace must be explicitly specified in the update rule (Append[Numbers] -> {1,2,3}).
  • Single fields can be specified as symbols or symbols (FieldName) wrapped in Append/Replace (Replace[FieldName]). Both forms will always have the same behaviour of replacing the existing values in the objects.
  • Cannot append a single Null value to a multiple field: Append[MultipleField] -> Null is invalid.
  • All fields specified in the upload must match their field patterns the same as in ValidPacketFormatQ.
  • Input
    Output
    General Options

Examples

Basic Examples  (2)

Returns False if field not in definition:

Returns False if field value does not match storage pattern in definition:

Additional Examples  (2)

Ignores all delayed rules:

If field has default Units and none are specified, add them before checking validity:

Options  (2)

DisplayFunction  (1)

The printed list of packets can be modified:

Verbose  (1)

Verbose Option prints the individual field checks: