Page MenuHomePhorge

No OneTemporary

Size
932 B
Referenced Files
None
Subscribers
None
diff --git a/lib/open_api_spex/plug/cast2.ex b/lib/open_api_spex/plug/cast2.ex
index 112133c..d44014c 100644
--- a/lib/open_api_spex/plug/cast2.ex
+++ b/lib/open_api_spex/plug/cast2.ex
@@ -1,15 +1,11 @@
defmodule OpenApiSpex.Plug.Cast2 do
@behaviour Plug
@impl Plug
- def init(opts) do
- IO.warn("OpenApiSpex.Plug.Cast2 is deprecated. Please use OpenApiSpex.Plug.CastAndValidate.")
- OpenApiSpex.Plug.CastAndValidate.init(opts)
- end
+ @deprecated "Use OpenApiSpex.Plug.CastAndValidate.init/1 instead"
+ defdelegate init(opts), to: OpenApiSpex.Plug.CastAndValidate
@impl Plug
- def call(conn, opts) do
- IO.warn("OpenApiSpex.Plug.Cast2 is deprecated. Please use OpenApiSpex.Plug.CastAndValidate.")
- OpenApiSpex.Plug.CastAndValidate.call(conn, opts)
- end
+ @deprecated "Use OpenApiSpex.Plug.CastAndValidate.call/2 instead"
+ defdelegate call(conn, opts), to: OpenApiSpex.Plug.CastAndValidate
end

File Metadata

Mime Type
text/x-diff
Expires
Sat, Nov 30, 6:53 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41389
Default Alt Text
(932 B)

Event Timeline