Default values associated to a c3type is not populated after make


xyz: boolean post default true

The above statement doesn’t create ‘xyz’ default to ‘true’ when I perform an make on the c3type



Good question, post default and = do not have the same behavior.

  • = is an object initializer, it will be populated when you make an object
  • post default will be populated when the object is stored from the DB (if no value has been provided)

More details here: Setting constant values in a type