Skip to content
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

Generate #[doc=".."] for structs and fields from openapi descriptions #34

Open
jayvdb opened this issue Nov 10, 2022 · 1 comment
Open

Comments

@jayvdb
Copy link

jayvdb commented Nov 10, 2022

If the openapi schemas contain descriptions, it would be good for these to be copied into the Rust as #[doc="..."], or at least as Doc comments

@kstasik
Copy link
Owner

kstasik commented Nov 15, 2022

To add proper multiline description i think schema-tools can't replace \n with spaces:

https://github.com/kstasik/schema-tools/blob/master/src/codegen/jsonschema/mod.rs#L414

But it may be done in a separate ticket if someone needs it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants