fix(vehicles): handle empty unit_type during updates
Updated the vehicles API to allow PATCH requests with an empty unit_type. This change ensures that existing records with unit_type='' can be updated without validation errors, while maintaining the default value of 'fuel' for new inserts. This adjustment resolves issues with updating pre-existing vehicle records that lack a unit_type field.
This commit is contained in:
parent
9ea0a1f65e
commit
2d36e9b1cd
3 changed files with 1943 additions and 0 deletions
BIN
RAW_DOCS/Plant_Hours_Template_1.xlsx
Normal file
BIN
RAW_DOCS/Plant_Hours_Template_1.xlsx
Normal file
Binary file not shown.
1943
docs/superpowers/plans/2026-08-29-metrics-extraction.md
Normal file
1943
docs/superpowers/plans/2026-08-29-metrics-extraction.md
Normal file
File diff suppressed because it is too large
Load diff
BIN
scripts/__pycache__/pb-bootstrap-schema.cpython-314.pyc
Normal file
BIN
scripts/__pycache__/pb-bootstrap-schema.cpython-314.pyc
Normal file
Binary file not shown.
Loading…
Reference in a new issue