@@ -24,7 +24,8 @@ pub struct DscExtension {
2424 /// The capabilities of the resource.
2525 pub capabilities : Vec < Capability > ,
2626 /// The extensions supported for importing.
27- pub import_extensions : Option < Vec < String > > ,
27+ #[ serde( rename = "importFileExtensions" ) ]
28+ pub import_file_extensions : Option < Vec < String > > ,
2829 /// The file path to the resource.
2930 pub path : String ,
3031 /// The description of the resource.
@@ -65,7 +66,7 @@ impl DscExtension {
6566 type_name : String :: new ( ) ,
6667 version : String :: new ( ) ,
6768 capabilities : Vec :: new ( ) ,
68- import_extensions : None ,
69+ import_file_extensions : None ,
6970 description : None ,
7071 path : String :: new ( ) ,
7172 directory : String :: new ( ) ,
@@ -153,7 +154,7 @@ impl DscExtension {
153154 if self . capabilities . contains ( & Capability :: Import ) {
154155 let file_path = Path :: new ( file) ;
155156 let file_extension = file_path. extension ( ) . and_then ( |s| s. to_str ( ) ) . unwrap_or_default ( ) . to_string ( ) ;
156- if self . import_extensions . as_ref ( ) . is_some_and ( |exts| exts. contains ( & file_extension) ) {
157+ if self . import_file_extensions . as_ref ( ) . is_some_and ( |exts| exts. contains ( & file_extension) ) {
157158 debug ! ( "{}" , t!( "extensions.dscextension.importingFile" , file = file, extension = self . type_name) ) ;
158159 } else {
159160 debug ! ( "{}" , t!( "extensions.dscextension.importNotSupported" , file = file, extension = self . type_name) ) ;
0 commit comments