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

Read #[garde(...)] attributes in addition to #[validate(...)] #331

Merged
merged 4 commits into from
Aug 29, 2024
Merged

Conversation

GREsau
Copy link
Owner

@GREsau GREsau commented Aug 29, 2024

Addresses #233

Add support for the following garde attributes, along with allowing #[schemars(...)] overrides:

  • required
  • email
  • url
  • ip/ipv4/ipv6
  • length
  • range
  • contains
  • pattern
  • inner

Does not support:

  • ascii
  • alphanumeric
  • prefix/suffix
  • credit_card
  • phone_number
  • matches
  • div
  • skip
  • custom

The corresponding behaviour was previously removed from the Validator crate, and is not supported by Garde.
@GREsau GREsau changed the title Read #[garde(...)] attributes in addition to #[validate(...)]`` Read #[garde(...)] attributes in addition to #[validate(...)] Aug 29, 2024
@GREsau GREsau merged commit 9770301 into master Aug 29, 2024
8 checks passed
@GREsau GREsau deleted the garde branch August 29, 2024 16:12
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.

1 participant