Make fields barcode1D, manufacturing_date, purchase_date, date_delivery, end_of_warranty_date and components optional
When calling the gRPC LabwareInstanceControllerStub
's Create
method with fields barcode1D
, manufacturing_date
, purchase_date
, date_delivery
, end_of_warranty_date
and components
set to None
, the LARA-django instance throws the following error:
rest_framework.exceptions.ValidationError: {'barcode1D': [ErrorDetail(string='This field may not be blank.', code='blank')], 'UUID': [ErrorDetail(string='Must be a valid UUID.', code='invalid')], 'manufacturing_date': [ErrorDetail(string='Datetime has wrong format. Use one of these formats instead: YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z].', code='invalid')], 'purchase_date': [ErrorDetail(string='Datetime has wrong format. Use one of these formats instead: YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z].', code='invalid')], 'date_delivery': [ErrorDetail(string='Datetime has wrong format. Use one of these formats instead: YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z].', code='invalid')], 'end_of_warranty_date': [ErrorDetail(string='Datetime has wrong format. Use one of these formats instead: YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z].', code='invalid')], 'components': [ErrorDetail(string='This list may not be empty.', code='empty')]}
As my dataset does not provide information for these fields, I would like them to be optional.
Edited by Felix Lösch