Elixir generator `AnyType` support
Created by: paulbalomiri
Description
When compiling spec files which contain AnyType
, the elixir generator expects a :struct
type to be used in decoder.ex
.
The generated code fails because no type <PKG>.Model.AnyType
exists
Example Generated code found here:
defimpl Poison.Decoder, for: Ory.Model.OAuth2Client do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:jwks, :struct, Ory.Model.AnyType, options)
|> deserialize(:metadata, :struct, Ory.Model.AnyType, options)
end
end
openapi-generator version
6.0.3
to latest in main
branch
Related issues/PRs
The proposed fix will reference this issue and builds on the latest work by @halostatue.
- #12731 (closed)
- #12775
I also include the related elixir issues from #12731 (closed).
- #12484 (closed)
- #4011 Still there is no elixir test suite
- #8804
- #12268
Suggest a fix/enhancement
When work on my branch is finished I intend to submit a PR