We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2072aea commit cb2ac4dCopy full SHA for cb2ac4d
rust/signed_doc/src/builder.rs
@@ -92,7 +92,8 @@ impl ContentBuilder {
92
json: &serde_json::Value,
93
) -> anyhow::Result<SignaturesBuilder> {
94
anyhow::ensure!(
95
- self.metadata.content_type() == Some(ContentType::Json),
+ self.metadata.content_type() == Some(ContentType::Json)
96
+ || self.metadata.content_type() == Some(ContentType::SchemaJson),
97
"Already set metadata field `content-type` is not JSON value"
98
);
99
0 commit comments