Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F116079
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
932 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
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)
Attached To
Mode
R22 open_api_spex
Attached
Detach File
Event Timeline
Log In to Comment