diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 37d78d26..d9e25498 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -68,6 +68,7 @@ jobs: cargo test -p utoipa --features openapi_extensions,yaml elif [[ "${{ matrix.testset }}" == "utoipa-gen" ]] && [[ ${{ steps.changes.outputs.gen_changed }} == true ]]; then cargo test -p utoipa-gen --features utoipa/actix_extras,chrono,decimal,json,utoipa/uuid,utoipa/json + cargo test -p utoipa-gen --test schema_derive_test --features json,utoipa/json,utoipa/time,time cargo test -p utoipa-gen --test path_response_derive_test_no_serde_json --no-default-features cargo test -p utoipa-gen --test schema_derive_no_serde_json --no-default-features diff --git a/scripts/test.sh b/scripts/test.sh index 6ee99bcd..c8a88873 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -10,6 +10,7 @@ if [[ "$crate" == "utoipa" ]]; then cargo test -p utoipa --features openapi_extensions elif [[ "$crate" == "utoipa-gen" ]]; then cargo test -p utoipa-gen --features utoipa/actix_extras,chrono,decimal,json,utoipa/uuid,utoipa/json + cargo test -p utoipa-gen --test schema_derive_test --features json,utoipa/json,utoipa/time,time cargo test -p utoipa-gen --test path_response_derive_test_no_serde_json --no-default-features cargo test -p utoipa-gen --test schema_derive_no_serde_json --no-default-features diff --git a/utoipa-gen/Cargo.toml b/utoipa-gen/Cargo.toml index 706700f4..1d654053 100644 --- a/utoipa-gen/Cargo.toml +++ b/utoipa-gen/Cargo.toml @@ -35,6 +35,7 @@ smallvec = { version = "1.9.0", features = [ "serde" ] } rust_decimal = "1" chrono = { version = "0.4", features = ["serde"] } assert-json-diff = "2" +time = { version = "0.3.11", features = [ "serde-human-readable" ] } [features] debug = []