Support for custom class name
Support for min/max/mandatory/notnull for document fields