Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ and the `ipa` is _api_ reversed. Aaand... `ipa` is also an awesome type of beer
documentation for `Decimal` much like `serde_with_float` feature exposed by rust_decimal.
- **`uuid`**: Add support for [uuid](https://github.com/uuid-rs/uuid). `Uuid` type will be presented as `String` with
format `uuid` in OpenAPI spec.
- **`ulid`**: Add support for [ulid](https://github.com/dylanhart/ulid-rs). `Ulid` type will be presented as `String` with
- **`ulid`**: Add support for [ulid](https://github.com/s0l0ist/ferroid). `Ulid` type will be presented as `String` with
format `ulid` in OpenAPI spec.
- **`url`**: Add support for [url](https://github.com/servo/rust-url). `Url` type will be presented as `String` with
format `uri` in OpenAPI spec.
Expand Down
4 changes: 2 additions & 2 deletions utoipa-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ syn = { version = "2.0", features = ["full", "extra-traits"] }
quote = "1.0"
regex = { version = "1.7", optional = true }
uuid = { version = "1", features = ["serde"], optional = true }
ulid = { version = "1", optional = true, default-features = false }
ferroid = { version = "1.0", optional = true, features = ["ulid", "base32"] }
url = { version = "2", optional = true }

[dev-dependencies]
Expand Down Expand Up @@ -66,7 +66,7 @@ decimal_float = []
rocket_extras = ["regex", "syn/extra-traits"]
non_strict_integers = []
uuid = ["dep:uuid"]
ulid = ["dep:ulid"]
ulid = ["dep:ferroid"]
url = ["dep:url"]
axum_extras = ["regex", "syn/extra-traits"]
time = []
Expand Down
2 changes: 1 addition & 1 deletion utoipa-gen/tests/path_derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ fn derive_path_with_uuid() {
#[cfg(feature = "ulid")]
#[test]
fn derive_path_with_ulid() {
use ulid::Ulid;
use ferroid::id::ULID as Ulid;

#[utoipa::path(
get,
Expand Down
2 changes: 1 addition & 1 deletion utoipa-gen/tests/schema_derive_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1967,7 +1967,7 @@ fn derive_struct_with_uuid_type() {
#[cfg(feature = "ulid")]
#[test]
fn derive_struct_with_ulid_type() {
use ulid::Ulid;
use ferroid::id::ULID as Ulid;

let post = api_doc! {
struct Post {
Expand Down
2 changes: 1 addition & 1 deletion utoipa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
//! documentation for `Decimal` much like `serde_with_float` feature exposed by rust_decimal.
//! * **`uuid`** Add support for [uuid](https://github.com/uuid-rs/uuid). `Uuid` type will be presented as `String` with
//! format `uuid` in OpenAPI spec.
//! * **`ulid`** Add support for [ulid](https://github.com/dylanhart/ulid-rs). `Ulid` type will be presented as `String` with
//! * **`ulid`** Add support for [ulid](https://github.com/s0l0ist/ferroid). `Ulid` type will be presented as `String` with
//! format `ulid` in OpenAPI spec.
//! * **`url`** Add support for [url](https://github.com/servo/rust-url). `Url` type will be presented as `String` with
//! format `uri` in OpenAPI spec.
Expand Down