-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Generating definition types for enums with serde tag #244
Comments
Hi, Is there any interest in this? If I (with some pointers) tried to implement a PR for this - would it be likely to be accepted? @GREsau |
Closing - found #157 which this seems to be duplicate of - my question stands though if there would be interest in a PR to adress this? |
While debugging turns out this is actually not a duplicate! The other issue is about getting a ref for the enum type - this issue is about getting a ref to the struct inside the enum type. |
Hi,
First of all - thanks for a very usefull library. I'm using it for synchronizing types from rust for a large project.
However, one issue I have is that I would like to be able to refer to the structs that are parts of enums directly - but schemars seems to inline those struct (which I think is a bug?)
Consider the following input:
Which generates:
Note in particular that no definition is generated for SubType which means that I am unable to generate types that can be refered to in code generated from the schema.
The text was updated successfully, but these errors were encountered: