bamorim / typed_ecto_schema

A library to define Ecto schemas with typespecs without all the boilerplate code.
https://hexdocs.pm/typed_ecto_schema
Apache License 2.0
267 stars 18 forks source link

Can't add `null: false` to `@primary_key` #42

Open sl1depengwyn opened 7 months ago

sl1depengwyn commented 7 months ago
** (ArgumentError) invalid option :null for field/3
    (ecto 3.11.1) lib/ecto/schema.ex:2379: Ecto.Schema.check_options!/3
    (ecto 3.11.1) lib/ecto/schema.ex:2017: Ecto.Schema.__field__/4
    lib/explorer/chain/address/name.ex:22: (module)

If more details are needed feel free to request it

bamorim commented 7 months ago

I'm afraid that would have to be implemented as an option on the typed_schema and typed_embedded_schema functions.