Skip to content

Spect does not complain about non-nullable struct fields missing #18

@23Skidoo

Description

@23Skidoo

For example, given the following struct definition:

typed_struct enforce: true do
    field :foo, String.t()
end

Spect will happily accept an empty map as valid:

> Spect.to_spec(%{}, __MODULE__)
{:ok, %__MODULE__{foo: nil}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions