lib/schemable/definition.rb in schemable-1.0.0 vs lib/schemable/definition.rb in schemable-1.0.1

- old
+ new

@@ -263,9 +263,22 @@ # @return [Array<Symbol>] The included that are excluded from the response schema. def excluded_response_included %i[] end + # Returns the default value for the enum attributes. + # + # @example + # { + # status: 'pending', + # flag: 0 + # } + # + # @return [Hash] The custom default values for the enum attributes. + def default_value_for_enum_attributes + {} + end + # Returns an instance of the model class that is already serialized into jsonapi format. # # @return [Hash] The serialized instance of the model class. def serialized_instance {}