From 8d3ba29432c1e4cc20c69274a1e6e3dd6067a3c7 Mon Sep 17 00:00:00 2001 From: Kurt Hogarth <87607684+cylkdev@users.noreply.github.com> Date: Sun, 4 Sep 2022 13:01:47 -0700 Subject: [PATCH] chore: update nimbleoptions --- lib/factory_ex/options_validator.ex | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/factory_ex/options_validator.ex b/lib/factory_ex/options_validator.ex index b815349..846c673 100644 --- a/lib/factory_ex/options_validator.ex +++ b/lib/factory_ex/options_validator.ex @@ -32,17 +32,13 @@ defmodule FactoryEx.OptionsValidator do ] @build_schema_factory_definition [ - factories: [ - type: {:list, :atom}, - doc: "Sets the factory modules for the schema factory, expects a module `:atom`" + app: [ + type: :atom, + doc: "Sets the app to load the factory modules. Can be a `:atom`." ], - paths: [ - type: {:list, :string}, - doc: "Sets the list of paths to autoload factory modules for the schema factory, can be a list of `:string`" - ], - schema_factory: [ - type: :any, - doc: "Sets the values to merge into the schema factory, can be a map." + app: [ + type: :atom, + doc: "Sets the prefix of the factory modules to load. Can be a module `:atom`." ] ]