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

feat(derive): crate path attribute #55

Closed
wants to merge 3 commits into from

Conversation

tamasfe
Copy link
Contributor

@tamasfe tamasfe commented Sep 28, 2020

Added parsing a #[schemars(crate = "another_crate::schemars") attribute like in serde for schemars_derive that allows the schemars crate to be renamed or reexported and used in macros of other libraries.

@GREsau
Copy link
Owner

GREsau commented Apr 5, 2021

Thanks for the PR - though to avoid having to pass the crate name to pretty much every function, I reimplemented this (#80) by conditionally inserting use #path as schemars; to the beginning of the derive output, in a similar fashion to how serde_derive does it.

@GREsau GREsau closed this Apr 5, 2021
@tamasfe
Copy link
Contributor Author

tamasfe commented Apr 5, 2021

Sounds great, thanks!

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

Successfully merging this pull request may close these issues.

2 participants