diff --git a/README.md b/README.md index a94bf7f..c9fe0d8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Schemars -[![CI Build](https://img.shields.io/github/workflow/status/GREsau/schemars/CI?logo=GitHub)](https://github.com/GREsau/schemars/actions) +[![CI Build](https://img.shields.io/github/actions/workflow/status/GREsau/schemars/ci.yml?branch=master&logo=GitHub)](https://github.com/GREsau/schemars/actions) [![Crates.io](https://img.shields.io/crates/v/schemars)](https://crates.io/crates/schemars) [![Docs](https://docs.rs/schemars/badge.svg)](https://docs.rs/schemars) [![rustc 1.45+](https://img.shields.io/badge/schemars-rustc_1.45+-lightgray.svg)](https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html) diff --git a/docs/1.1-attributes.md b/docs/1.1-attributes.md index 2904968..251a6a1 100644 --- a/docs/1.1-attributes.md +++ b/docs/1.1-attributes.md @@ -208,7 +208,7 @@ Validator docs: [range](https://github.com/Keats/validator#range)

-`#[validate(regex = "path::to::regex")]` / `#[schemars(regex = "path::to::regex")]` +`#[validate(regex = "path::to::regex")]` / `#[schemars(regex = "path::to::regex")]`
`#[schemars(regex(pattern = r"^\d+$"))]`