Closed amalbuquerque closed 3 years ago
ℹ️ Also, this kind-of supersedes the other open PR: https://github.com/jonasschmidt/ex_json_schema/pull/58 (which by now has some conflicts).
Yes, nice. Now that support for Elixir < 1.6 is dropped anyway, this is a great idea. Did you run the rest of the tests as well? I'm not sure why the Travis integration doesn't work on PRs. I think it used to 🤔
Yes, nice. Now that support for Elixir < 1.6 is dropped anyway, this is a great idea. Did you run the rest of the tests as well? I'm not sure why the Travis integration doesn't work on PRs. I think it used to :thinking:
Will run the other test suites and report back.
mix test
should run everything.
@jonasschmidt Everything's green as well:
❯ mix test
.......................................................................**************.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................**************........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................**************..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Finished in 5.1 seconds (5.1s async, 0.00s sync)
2104 tests, 0 failures, 42 skipped
Randomized with seed 336013
Perfect, I will merge and release a new version later today. Thank you for the contribution 🙌
Hi there, thank you for this library :raised_hands:
This is a small PR to use the native
Date
andDateTime
modules (available since Elixir 1.6) to validate thedate
anddate-time
field types.I've detected this problem since it was allowing a
2020-15-15
date, since thedate
was being validated against a\d{4}-\d{2}-\d{2}
regex.I've ran the
draft-07
test suite, everything working as expected: