mirror of
https://github.com/usetrmnl/trmnl-api.git
synced 2026-04-29 13:35:13 -07:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user