function::user_uint8_error - Linux


Overview

The function::user_uint8_error command is used for validating a request that contains a uint8 field. A uint8 represents an unsigned 8-bit integer.

Syntax

function::user_uint8_error REQUEST

Options/Flags

None.

Examples

Validate a request that contains a uint8 field:

function::user_uint8_error "{ field_a: 1 }"

If the request body contains a field_a that is not an unsigned 8-bit integer, the validation will fail and return an error message.

Common Issues

If the request body contains a field_a that is not an unsigned 8-bit integer, the validation will fail and return an error message.

Integration

This command can be used with other commands to validate requests that contain uint8 fields. For example, it can be used with the function::validate command to validate a request body that contains multiple fields.

Related Commands

  • function::validate
  • function::field_error
  • function::status