Skip to content

Commit 2d09a2a

Browse files
committed
Add deprecationMessage as optional property in resource manifest
1 parent f238547 commit 2d09a2a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

dsc_lib/src/dscerror.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use std::str::Utf8Error;
66

77
use indicatif::style::TemplateError;
88
use thiserror::Error;
9-
use tracing::error;
109
use tree_sitter::LanguageError;
1110

1211
#[derive(Error, Debug)]

dsc_lib/src/dscresources/resource_manifest.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ pub struct ResourceManifest {
3535
pub kind: Option<Kind>,
3636
/// The version of the resource using semantic versioning.
3737
pub version: String,
38+
/// The deprecation message of the resource, if the resource is deprecated.
39+
#[serde(skip_serializing_if = "Option::is_none")]
40+
pub deprecation_message: Option<String>,
3841
/// The description of the resource.
3942
pub description: Option<String>,
4043
/// Tags for the resource.

0 commit comments

Comments
 (0)