@@ -18,17 +18,17 @@ pub enum IncludeKind {
18
18
/// and not allowed to reference parent directories. If a configuration document is used
19
19
/// instead of a file, then the path is relative to the current working directory.
20
20
#[ serde( rename = "configurationFile" ) ]
21
- FilePath ( String ) ,
21
+ ConfigurationFile ( String ) ,
22
22
#[ serde( rename = "configurationContent" ) ]
23
- Content ( String ) ,
23
+ ConfigurationContent ( String ) ,
24
24
}
25
25
26
26
#[ derive( Debug , Clone , PartialEq , Deserialize , Serialize , JsonSchema ) ]
27
27
pub enum IncludeParametersKind {
28
28
#[ serde( rename = "parametersFile" ) ]
29
- FilePath ( String ) ,
29
+ ParametersFile ( String ) ,
30
30
#[ serde( rename = "parametersContent" ) ]
31
- Content ( String ) ,
31
+ ParametersContent ( String ) ,
32
32
}
33
33
34
34
#[ derive( Debug , Clone , PartialEq , Deserialize , Serialize , JsonSchema ) ]
@@ -67,7 +67,7 @@ pub fn get_contents(input: &str) -> Result<(Option<String>, String), String> {
67
67
} ;
68
68
69
69
let config_json = match include. configuration {
70
- IncludeKind :: FilePath ( file_path) => {
70
+ IncludeKind :: ConfigurationFile ( file_path) => {
71
71
let include_path = normalize_path ( Path :: new ( & file_path) ) ?;
72
72
73
73
// read the file specified in the Include input
@@ -100,7 +100,7 @@ pub fn get_contents(input: &str) -> Result<(Option<String>, String), String> {
100
100
}
101
101
}
102
102
} ,
103
- IncludeKind :: Content ( text) => {
103
+ IncludeKind :: ConfigurationContent ( text) => {
104
104
match parse_input_to_json ( & text) {
105
105
Ok ( json) => json,
106
106
Err ( err) => {
@@ -111,7 +111,7 @@ pub fn get_contents(input: &str) -> Result<(Option<String>, String), String> {
111
111
} ;
112
112
113
113
let parameters = match include. parameters {
114
- Some ( IncludeParametersKind :: FilePath ( file_path) ) => {
114
+ Some ( IncludeParametersKind :: ParametersFile ( file_path) ) => {
115
115
// combine the path with DSC_CONFIG_ROOT
116
116
let parameters_file = normalize_path ( Path :: new ( & file_path) ) ?;
117
117
info ! ( "{} '{parameters_file:?}'" , t!( "resolve.resolvingParameters" ) ) ;
@@ -130,7 +130,7 @@ pub fn get_contents(input: &str) -> Result<(Option<String>, String), String> {
130
130
}
131
131
}
132
132
} ,
133
- Some ( IncludeParametersKind :: Content ( text) ) => {
133
+ Some ( IncludeParametersKind :: ParametersContent ( text) ) => {
134
134
let parameters_json = match parse_input_to_json ( & text) {
135
135
Ok ( json) => json,
136
136
Err ( err) => {
0 commit comments