Updated the _validate_coverage_data function to handle both JSON strings and objects.
Changes:
Modified p3/data/_validation.py to validate both JSON strings and objects.
Updated imports and function calls in p3/metrics/_divergence.py.
Adjusted tests in tests/data/test_validation.py to cover both cases.
Updated the _validate_coverage_data function to handle both JSON strings and objects.
Changes:
Modified p3/data/_validation.py to validate both JSON strings and objects. Updated imports and function calls in p3/metrics/_divergence.py. Adjusted tests in tests/data/test_validation.py to cover both cases.