bamorim / typed_ecto_schema

A library to define Ecto schemas with typespecs without all the boilerplate code.
https://hexdocs.pm/typed_ecto_schema
Apache License 2.0
271 stars 18 forks source link

Support types represented with 'source override' tuples #16

Closed dvic closed 2 years ago

dvic commented 3 years ago

This PR adds support for properly parsing "source" override types, e.g.:

  defmodule MyModule do
     use TypedEctoSchema

     typed_schema "foo" do
       has_many :items, {"some_source", SomeSchema}
     end

   end
dvic commented 3 years ago

After #15 gets merged a merge conflict will need to be solved (along with a update to the test, as the generated AST has changed in #15).

dvic commented 2 years ago

Moved to #18