mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-22 22:26:41 +00:00
1.1 KiB
1.1 KiB
Changelog
This file is used to list changes made in each version of the Schemable gem.
Schemable 1.0.3 (2024-01-30)
- Added configuration for preventing expansion for nested relationships. This can be done by setting the
expand_nestedtotruewhen invokingResponseSchemaGenerator'sgenerateinstance method (e.g.ResponseSchemaGenerator.new(instance).generate(expand: true, expand_nested: true). Additionally, you could globally set the value ofexpand_nestedto the same value asexpandby setting the configurationinfer_expand_nested_from_expandtotruein the/config/initializers/schemable.rb.
Schemable 1.0.2 (2024-01-30)
- Added configuration for making certain associations nullable in the response's relationship. This can be done by adding the name of the relation in the
nullable_relationshipsmethod's array of strings.
Schemable 1.0.1 (2024-01-29)
- Added configuration for changing the default value of enums. By default first key is used, or alternatively default can be set manually by the method
default_value_for_enum_attributesfrom the definition.
Schemable 1.0.0 (2023-11-17)
- Initial release