ash-project / ash_json_api

The JSON:API extension for the Ash Framework
https://hexdocs.pm/ash_json_api
MIT License
56 stars 40 forks source link

feat: Add JsonPrimaryKey to support customizing the primary key #42

Closed mangeption closed 3 years ago

mangeption commented 3 years ago

Contributor checklist

zachdaniel commented 3 years ago

Had a few comments, but overall this looks great! Awesome work.

As for testing the DSL validations, you can actually run compile time code in the tests, e.g

test "foo" do
  assert_raise Ash.Error.Dsl.DslError, ~r/match/, fn -> 
    defmodule BadResource do
       .....
    end
  end
end
zachdaniel commented 3 years ago

Great work!

🚀 Thank you for your contribution! 🚀