nofusscomputing / centurion_erp

An ERP with a focus on ITSM and Automation
MIT License
0 stars 0 forks source link

API Device creation does not accept uppercase UUID #261

Open jasonpagetas opened 2 weeks ago

jasonpagetas commented 2 weeks ago

While adding device using the API I was given this error:


    "json": {
        "uuid": [
            "UUID Must be in [0-9|a-f]{8}\\-[0-9|a-f]{4}\\-[0-9|a-f]{4}\\-[0-9|a-f]{4}\\-[0-9|a-f]{12}"
        ]
    },
    "msg": "Status code was 400 and not [200, 201]: HTTP Error 400: Bad Request",

UUID should be accepted with capitalised letters

jon-nfc commented 2 weeks ago

agreed.

I'll adjust to accept any case, however will be normalised to lowercase on storage. will be part of v1.2