flexmeasures.utils.validation_utils

Functions

flexmeasures.utils.validation_utils.validate_color_hex(value)

Validates that a given value is a valid hex color code.

Parameters: :value: The color code to validate.

flexmeasures.utils.validation_utils.validate_url(value)

Validates that a given value is a valid URL format using regex.

Parameters: :value: The URL to validate.