Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
somehowchris committed Mar 20, 2022
1 parent 3655473 commit 0fe926f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
path: packages/validation/

- name: Update deployment status (success)
if: success()
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name = "rocket-validation"
version = "0.1.0"
edition = "2021"
license = "MIT"
readme = "../../Readme.md"
readme = "README.md"
repository = "https://github.com/somehowchris/rocket-validation"
keywords = ["rocket", "validation", "json", "query", "data", "validator"]
keywords = ["rocket", "validation", "json", "data", "validator"]
categories = ["web-programming"]
rust-version = "1.56.0"
description = "Rocket Guards to support validation using validator"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ fn rocket() -> _ {
.mount("/", routes![validated_hello])
.register("/", catchers![rocket_validation::validation_catcher])
}
```
```
> Currently limited to `Json` or `FromData` validations due to inernal rocket limitations
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl<'r, D: Validate + rocket::serde::Deserialize<'r>> FromData<'r> for Validate
}
}

/// Implementation of `Validated` for `FromRequest`
/// Implementation of `Validated` for `FromRequest` implementing `Validate`
//
/// Anything you implement `FromRequest` for as well as `Validate`
#[rocket::async_trait]
Expand All @@ -218,9 +218,9 @@ impl<'r, D: Validate + FromRequest<'r>> FromRequest<'r> for Validated<D> {
}
}

// TODO Fix doc
/// Implementation of `Validated` for `FromForm`
/// An example with `Json`
///
/// An example validating a query struct
/// ```rust
/// # #[macro_use] extern crate rocket;
/// use rocket::serde::{json::Json, Deserialize, Serialize};
Expand Down

0 comments on commit 0fe926f

Please sign in to comment.