-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elixir generator AnyType
support
#14070
Comments
I'm referring here to the discussion in the PR, which is better placed here, and in separate (future) related issues. So there are 2 bugs here, and potentially a discussion
This is a feature addition, but without it this is a bug, as the non-existing
|
@mrmstn, @halostatue so the two bugs in one PR, discussion separately is ok? |
I think that the change of approach to fixed struct from piping should probably be a separate PR, as I’m not convinced that it’s a good change, personally. I generally treat |
Will contribute this this weekend. [personal urgency] |
Hello 👋 any update on this, by any chance? I'm running into the same issue with this elixir kratos client |
Hi @parkerduckworth , {:ory_hydra, github: "paulbalomiri/ory_sdk", sparse: "clients/hydra/elixir/", tag: "bugfix_elixir"},
{:ory_kratos, github: "paulbalomiri/ory_sdk", sparse: "clients/kratos/elixir/", tag: "bugfix_elixir"}, You could fork yourself, or use it directly, but it's not production grade. |
Hi everyone, I was able to get some spare time to resolve this issue. Thanks to everyone involved in this, specially @paulbalomiri for bringing this issue up and filling a draft for the issue. Also, a special thanks to @halostatue for the reviews and discussions, I highly appreciate it. The fix will be shipped in version 6.3.0. |
Description
When compiling spec files which contain
AnyType
, the elixir generator expects a:struct
type to be used indecoder.ex
.The generated code fails because no type
<PKG>.Model.AnyType
existsExample Generated code found here:
openapi-generator version
6.0.3
to latest inmain
branchRelated issues/PRs
The proposed fix will reference this issue and builds on the latest work by @halostatue.
I also include the related elixir issues from #12731.
Still there is no elixir test suite
Suggest a fix/enhancement
When work on my branch is finished I intend to submit a PR
The text was updated successfully, but these errors were encountered: