fisxoj / sanity-clause

A data serialization/contract library for common lisp
GNU Lesser General Public License v3.0
51 stars 2 forks source link

Class-based schemas #5

Closed fisxoj closed 5 years ago

fisxoj commented 5 years ago

Users should be able to define classes with a metaclass that ensures that initargs will be validated before an instance of the class is created.

fisxoj commented 5 years ago

I'm going to merge this in as it is as version 0.4.0. In working on it, I think it would be interesting to also validate on (setf slot) functions, perhaps optionally as a class option for classes defined with the metaclass.