Skip to content

v3.0.0

Choose a tag to compare

@amclain amclain released this 17 Sep 23:42
· 13 commits to main since this release

Optional booleans that are not present now return nil instead of false. This makes it easier to detect if the value was present.

attribute :param1, :boolean, optional: true

If the intent is to use spec to coerce an optional property to only true/false, use default:

attribute :param1, :boolean, default: false