norm icon indicating copy to clipboard operation
norm copied to clipboard

Data specification and generation

Results 29 norm issues
Sort by recently updated
recently updated
newest added

Bumps [credo](https://github.com/rrrene/credo) from 1.5.6 to 1.6.6. Changelog Sourced from credo's changelog. 1.6.6 Fix error when analysing single-line modules Fix false positive for Credo.Check.Readability.SpaceAroundOperators Fix false positive for Credo.Check.Warning.UnusedStringOperation Fix bug...

dependencies

Bumps [ex_doc](https://github.com/elixir-lang/ex_doc) from 0.28.3 to 0.28.4. Changelog Sourced from ex_doc's changelog. v0.28.4 (2022-04-28) Enhancements Add a toast when changing theme via keyboard Automatically convert .livemd links to .html ones Show...

dependencies

Context: https://github.com/keathley/norm/issues/76 ## Problem statement Norm provides fantastic validation utilities but the errors generated aren't end-user friendly, leading to a split in our validation tooling. In order to use Norm...

Fixes #65 **Benchmarks**: 50 runs for each implementation consisting of ~90 000 checks per run. Results are in microseconds. TL;DR: 2sec for `valid?/2`, ~50sec for `conform/2`. **valid?** | **conform** ---...

This pull request makes sure all recommended Elixir and Erlang/OTP combinations are run on CI. Quoting José Valim: > I would still advise folks to go with: > * For...

I'm using the [Floki](https://hexdocs.pm/floki/Floki.html) web parsing library and have defined the following specs for use in my own code: ```elixir def floki_html_tree(), do: coll_of(one_of([floki_html_comment(), floki_html_doctype(), floki_html_tag()])) def floki_html_comment(), do: {:comment,...

This PR serves as a test for coercing inputs based on specs. There's several unanswered questions and problems to solve still. But I wanted to see what people thought about...

```elixir import Norm key_opt_spec = {:keys, coll_of(one_of(~w"a b c"a))} fun_opt_spec = {:fun, spec(is_function(1))} opts_spec = coll_of(one_of([key_opt_spec, fun_opt_spec])) conform!([{:fun, fn _ -> "auto" end}], opts_spec) ``` crashes with: ``` ** (Protocol.UndefinedError)...

`a_contract_between_doc_and_def/0` below won't get tested or documented, without any warning to that effect: ```elixir defmodule NormContractVsDoctest do @moduledoc """ Demonstrates interaction between `@contract` and `@doc` """ use Norm @doc """...