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

Extra items in #[schemars(...)] attributes are silently ignored #18

Closed
GREsau opened this issue Feb 29, 2020 · 1 comment
Closed

Extra items in #[schemars(...)] attributes are silently ignored #18

GREsau opened this issue Feb 29, 2020 · 1 comment

Comments

@GREsau
Copy link
Owner

GREsau commented Feb 29, 2020

This currently compiles:

#[derive(JsonSchema)]
#[schemars(wasd, qwerty = "uiop")]
pub struct MyStruct;

It should cause a compile error to prevent people from mistyping or trying to use unsupported attributes

@GREsau
Copy link
Owner Author

GREsau commented May 12, 2020

A fix for this was committed in 780c728, but is commented out as it will be a breaking change. I'll uncomment it (which will actually apply the fix) when releasing v0.8 - done in b0a2f99

@GREsau GREsau closed this as completed Mar 23, 2021
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

1 participant