Skip to content
Merged
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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ not always match the Git tags; section versions follow the tags.

## [Unreleased]

### Changed

- `integrity-lineage-models`: `utoipa` from 3.5.0 to 6.0.0. **Breaking:** the models'
`ToSchema` implementations are now utoipa 6's, so an OpenAPI document that embeds
them has to be built with utoipa 6. Serialization and the Rust API are unchanged.
The schemas describe the same JSON, now in OpenAPI 3.1 form: a nullable field's
`type` includes `"null"`, references carry their doc comments, and maps declare
string keys. The internally tagged `anchor::Location` enum no longer has a
`discriminator`; each variant still requires its `type` value.
([#57](https://github.com/eqtylab/integrity/pull/57))

## [0.0.20] - 2026-10-28

### Changed
Expand Down
22 changes: 16 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion integrity-lineage-models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_jcs = "0.2.0"
serde_json = "1.0"
ssi = { version = "0.16", default-features = false, features = ["w3c", "ed25519", "secp256k1", "secp256r1"] }
utoipa = { version = "3", features = ["axum_extras", "openapi_extensions"] }
utoipa = { version = "6", features = ["axum_extras", "openapi_extensions"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
blake3 = "1.5"
Expand Down
2 changes: 2 additions & 0 deletions integrity-lineage-models/src/models/statements/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub struct UrnCidWithSha256 {
#[serde(rename = "@id")]
pub cid: String,
/// SHA-256 hash of the content
#[schema(value_type = String, format = Binary)]
#[serde(
serialize_with = "serialize_u8_arr_as_hex",
deserialize_with = "deserialize_u8_arr_32_from_hex"
Expand All @@ -30,6 +31,7 @@ pub struct UrnCidWithSha384 {
#[serde(rename = "@id")]
pub cid: String,
/// SHA-384 hash of the content
#[schema(value_type = String, format = Binary)]
#[serde(
serialize_with = "serialize_u8_arr_as_hex",
deserialize_with = "deserialize_u8_arr_48_from_hex"
Expand Down
Loading