params icon indicating copy to clipboard operation
params copied to clipboard

Easy parameters validation/casting with Ecto.Schema, akin to Rails' strong parameters.

Results 12 params issues
Sort by recently updated
recently updated
newest added

1. fix a compile warning 2. remove useless config The details can be found in commit messages.

This PR replace TravisCI with GitHub Actions because [the build history](https://travis-ci.org/github/vic/params/builds) shows CI is no longer executed since 2y ago. ### changes - Add Elixir CI workflow for Actions (build.yml)...

I love this library, but I almost never build my own changeset validation functions because it's too cumbersome. I usually just use `with` after using params validation for types. However,...

Is there any way to specify a default value for a field of type `time`? e..g Set `~T[16:30:00]` as a default value? I tried: ```elixir [field: :time, default: ~T[16:30:00]] ```...

When compiling this library using Elixir v 1.11 you get the following warning: ``` warning: Ecto.Changeset.validate_required/2 defined in application :ecto is used by the current application but the current application...

This is a mildly breaking change, but is also what I assumed default behavior would be, curious what others think. With current cast behaviour, if an empty string is sent...

Just as suggestion or maybe I missing something and this can be already achieved: ```elixir defmodule SomeIdentityParams do use Params.Schema import App.Params.Helpers @fields ~w(id code) schema do field :id, :id...

enhancement
help wanted

Hi, I was wondering if it is possible to use Params with Poison? For Ecto.Schema we need to put @derive for Poison to encode. For Params where should I put...

`Phoenix.Component` overrides the `def` and `defp` macros to annotate function heads with some pattern matching. I believe because `defparams` creates a new method by calling `Module.eval_quoted/2` this is somehow evaluating...

I saw the travis configuration was outdated and decided to propose an initial CI configuration fro Github Actions. Right now this only runs the tests but it can be extended...