Skip to content

Commit cb2ac4d

Browse files
committed
fix
1 parent 2072aea commit cb2ac4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/signed_doc/src/builder.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ impl ContentBuilder {
9292
json: &serde_json::Value,
9393
) -> anyhow::Result<SignaturesBuilder> {
9494
anyhow::ensure!(
95-
self.metadata.content_type() == Some(ContentType::Json),
95+
self.metadata.content_type() == Some(ContentType::Json)
96+
|| self.metadata.content_type() == Some(ContentType::SchemaJson),
9697
"Already set metadata field `content-type` is not JSON value"
9798
);
9899

0 commit comments

Comments
 (0)