This Week's Trending
This Month's Trending
This Year's Trending
TLDR; Seeking feedback on what, if any, normalisations and validations should be provided when accepting input that represents a person’s...
New
Last Three Year's Trending
How can I do a custom validation in the following resource to make sure that the attribute use_by_date is today or later but not in the p...
New
Hi all
Context: external system with inconsistent, but feature-full API
We use an external SaaS system for hiring people. There are can...
New
I’m using a pretty vanilla implementation and seeing:
“length must be greater than or equal to 8”
I’d like that to be 20.
Ideally, I...
New
I’m trying to set up a couple of validations – unclear what the best approach is:
attribute :allowed_types, {:array, :atom} do
...
New
I have a Product which belongs_to a Category. How can I validate that the field category_id is not nil and how can I validate that there ...
New
To begin: I’m fairly new at web-frontend and trying to learn by cloning a popular word puzzle game.
I have an input field where a guess ...
New
I am experimenting with live view uploads for the first time, and I was wondering what is the recommended way of doing customized upload ...
New
Hello,
I want to validates a value among possible values with validate_inclusion but I’m stuck.
My use case is an avatar generation sys...
New
Hello everyone! I hope you’re all doing well.
I’m new to the world of Elixir, and recently I decided to create an SDK (I’ll share more d...
New
Trending Over Three Years
Simply,
I have a swagger document for a web-service, I want to validate that the response from the service (JSON) matches the format d...
New
Here is an example of a custom validation:
@our_url "https://our-bucket.s3.amazon.com"
def changeset(struct, params \\ %{}) do
struct
...
New
I’m still new to phoenix, prolly somewhere around 2 weeks old. I’m trying to build a json api and I’m having difficulty finding the best ...
New
Hi there,
I’m trying to capture constraint exceptions when a user attempts to create a database record with a primary key that already ...
New
I’m using the Decimal package to work with a field in my changeset.
field :amount, :decimal
I can validate it with validate_number so t...
New
I need to validate the criteria in a password: Must contain at least one capital letter, one lowercase and one or more numbers, the size ...
New
am a bit surprised. in my model i have specified fields that are required in the validate_required function. ironically when i try to sub...
New
Hi,
I have a question_type field which determines what part of a struct is required. If it is :text then the :text field is required, if...
New
I have a registrations model and participants model as follows:
schema "registrations" do
field :conf_number, :string
field :st...
New
I am trying to make ergonomic test helpers like so:
def violated_unique_constraint?(
field,
{:error,
%Changes...
New
I have a table for a collection of tasks. Only one of the fields :expiration_time and :expiration_all_day? may have a value (i.e. not be ...
New
How do I validate that at least 2 form fields have been filled? It doesn’t matter which ones, just as long as 2 out of n fields are fille...
New
Is there a convention/idiom for defining structs that require validation on construction?
I notice the standard library types Date and ...
New
I’m working on the next iteration of the API for my nerves_neopixel library and I’m curious how people feel about having an API where the...
New
One of our Phoenix apps has a complicated Company model (which includes attributes and associations for things like addresses, registered...
New
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Sub Categories:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







