NamingAuthorityValidator#

class compliance_checker.ioos.NamingAuthorityValidator(split_func=None)[source]#

Class to check for URL or reversed DNS strings contained within naming_authority

Methods

expected_type

alias of str

validator_func(self, input_value)

Function that should validate the result of a given input value

validate

validate_type

Attributes Summary

validator_fail_msg

Methods Summary

__init__([split_func])

validate(input_name, input_value)

validate_type(input_name, input_value)

validator_func(self, input_value)

Function that should validate the result of a given input value

Attributes Documentation

validator_fail_msg = '{} should either be a URL or a reversed DNS name (e.g "edu.ucar.unidata")'#

Methods Documentation

__init__(split_func=None)#
validate(input_name, input_value)#
validate_type(input_name, input_value)#
validator_func(self, input_value)[source]#

Function that should validate the result of a given input value