zachdaniel
Addition of `validate/3`
Going into main shortly, to be released with atomics being wrapped up (which will get its own larger announcement), we will support validate/3 in validations. To date, we did not expose the “context”, which currently contains the actor, tenant, tracer, and whether or not the request is being authorized (authorize?: boolean). The original idea is that validations were meant to be simple and context-free. However, in practice this often resulted in people starting with validations, until they realized they needed the current actor, and then they had to rewrite their validation to a change. validate/2 will still work as it originally did, but validate/3 can be used instead to get access to the current actor and other context information, the same as change/3
Trending in News & Updates
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #elixirconf-us
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









