Open vron opened 1 year ago
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.