This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

kip
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 Top

wintermeyer
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
artem
Hi all Context: external system with inconsistent, but feature-full API We use an external SaaS system for hiring people. There are can...
New
zorn
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
zac
I’m trying to set up a couple of validations – unclear what the best approach is: attribute :allowed_types, {:array, :atom} do ...
New
wintermeyer
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
owenfi
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
smon
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
RomainT
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
franzin
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 Top

afulki
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
acrolink
Here is an example of a custom validation: @our_url "https://our-bucket.s3.amazon.com" def changeset(struct, params \\ %{}) do struct ...
New
ndaljr
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
wmnnd
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
Kurisu
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
ajoao
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
Muhammad-Mullah
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
CallumVass
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
gorav
I have a registrations model and participants model as follows: schema "registrations" do field :conf_number, :string field :st...
New
dimitarvp
I am trying to make ergonomic test helpers like so: def violated_unique_constraint?( field, {:error, %Changes...
New
coen.bakker
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
Christophx
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
mbuhot
Is there a convention/idiom for defining structs that require validation on construction? I notice the standard library types Date and ...
New
GregMefford
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
gar
One of our Phoenix apps has a complicated Company model (which includes attributes and associations for things like addresses, registered...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement