We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#[derive(Component)] struct Foo { field: Option<Box<Self>> }
produces:
{ "properties": { "field": { "$ref": "#/components/schemas/Self" } }, "type": "object" }
expected:
{ "properties": { "field": { "$ref": "#/components/schemas/Foo" } }, "type": "object" }
The text was updated successfully, but these errors were encountered:
Yikes, this is not taken into account that objects could have reference to itself. Support for this could be added for sure.
Sorry, something went wrong.
It seems like #180 could be used as a workaround?
Or just renaming the type to Foo but I guess that might upset some clippy lints somewhere
Foo
Yes it could be used as a workaround.
Successfully merging a pull request may close this issue.
produces:
expected:
The text was updated successfully, but these errors were encountered: