ai-cfia / fertiscan-backend

Fertiscan backend
MIT License
1 stars 0 forks source link

NPK verification error #83

Closed Youllou closed 21 hours ago

Youllou commented 5 days ago

Description

The NPK verification flags on decimals but shouldnt (NPK can be decimals)

Steps to reproduce

Actual behabior

400 - bad request

{
    "error": "1 validation error for FertiliserForm\nnpk\n  String should match pattern '^(\\d+-\\d+-\\d+)?$' [type=string_pattern_mismatch, input_value='0.5-0.5-0.5', input_type=str]\n    For further information visit https://errors.pydantic.dev/2.5/v/string_pattern_mismatch"
}