Compiler check form fields
Any fields listed in :list-form, :update-form, or :add-form
should be checked for existence during compilation. Supports the
"compiler guarantees consistency" thesis — cheap, high leverage.
- ****
lisp/model.lisp**** - Addvalid-form-fieldsand call it fromcompile-type-def. - ****
tests/form-fields-tests.lisp**** — 13 tests in 3 groups:- Happy path (4):
:fields t, explicit valid fields, default fields(:id,:created-at,:updated-at), absent forms - Rejection (6): bad key in each form type, typo, multiple bad keys, bad key in one form while others are clean
- Edge cases (3): empty field list, single-element list, all existing models compile
- Happy path (4):
- ****
data-ui.asd**** — registeredform-fields-tests - ****
tests/helpers.lisp**** — addedrun-form-fields-testsand appended it torun-tests
- Slot
- 24200
- Status
- 60 Done
- Tags
- mvp, compiler, bug, valdn
- Contributors
- Donnie