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
269 stars 18 forks source link

Expand unknown AST calls inside schema block before walking the AST #17

Closed dvic closed 2 years ago

dvic commented 3 years ago

This PR adds support for modules that call a macro that eventually produces an AST that we known (e.g., an ecto field call). This is an example of such a module:

  defmodule MySchema do
     use TypedEctoSchema

     import MyMacros

     typed_schema "foo" do
       MyMacros.add_field(:foo, :integer)
     end
   end
dvic commented 2 years ago

Moved to #18