Added Dry Schema loading of monads extension

Necessary to allow schemas to be cast as monads for building fault tolerant pipelines.
This commit is contained in:
Brooke Kuhlmann
2025-04-22 11:48:02 -06:00
parent 83a8bbd940
commit 2caee63ece
+3
View File
@@ -1,7 +1,10 @@
# frozen_string_literal: true
require "dry/schema"
require "zeitwerk"
Dry::Schema.load_extensions :monads
Zeitwerk::Loader.new.then do |loader|
loader.inflector.inflect "api" => "API", "trmnl" => "TRMNL"
loader.tag = "trmnl-api"