Unexpected not-null constraint check while creating mac address
Even though valid_not_before
attribute is nullable, we get this error if we post these values as null:
{ "type": "http://localhost:8000/api/docs/v1/problems/server-error", "title": "Something went wrong.", "detail": "null value in column "valid_not_before" violates not-null constraint\nDETAIL: Failing row contains (4, , null, null, aa:bb:cc:dd:ee:f3, 2019-11-11 11:49:44.133358+00, null, null, 5, 5, 1).\n" }
payload:
{
"address": "AA:BB:CC:DD:EE:F3",
"managing_customer": "5",
"consuming_customer": "5",
"valid_not_before": null,
"valid_not_after": null
}