@@ -159,6 +159,11 @@ pub struct Configuration {
159159 #[ serde( rename = "$schema" ) ]
160160 #[ schemars( schema_with = "Configuration::recognized_schema_uris_subschema" ) ]
161161 pub schema : String ,
162+ /// Irrelevant Bicep metadata from using the extension
163+ /// TODO: Potentially check this as a feature flag.
164+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
165+ #[ serde( rename = "languageVersion" ) ]
166+ pub language_version : Option < String > ,
162167 #[ serde( rename = "contentVersion" ) ]
163168 pub content_version : Option < String > ,
164169 #[ serde( skip_serializing_if = "Option::is_none" ) ]
@@ -172,6 +177,11 @@ pub struct Configuration {
172177 pub resources : Vec < Resource > ,
173178 #[ serde( skip_serializing_if = "Option::is_none" ) ]
174179 pub variables : Option < Map < String , Value > > ,
180+ /// Irrelevant Bicep metadata from using the extension
181+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
182+ pub imports : Option < Map < String , Value > > ,
183+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
184+ pub extensions : Option < Map < String , Value > > ,
175185}
176186
177187#[ derive( Debug , Clone , PartialEq , Deserialize , Serialize , JsonSchema ) ]
@@ -344,6 +354,11 @@ pub struct Resource {
344354 pub resources : Option < Vec < Resource > > ,
345355 #[ serde( skip_serializing_if = "Option::is_none" ) ]
346356 pub metadata : Option < Metadata > ,
357+ /// Irrelevant Bicep metadata from using the extension
358+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
359+ pub import : Option < String > ,
360+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
361+ pub extension : Option < String > ,
347362}
348363
349364impl Default for Configuration {
@@ -381,13 +396,16 @@ impl Configuration {
381396 pub fn new ( ) -> Self {
382397 Self {
383398 schema : Self :: default_schema_id_uri ( ) ,
399+ language_version : None ,
384400 content_version : Some ( "1.0.0" . to_string ( ) ) ,
385401 metadata : None ,
386402 parameters : None ,
387403 resources : Vec :: new ( ) ,
388404 functions : None ,
389405 variables : None ,
390406 outputs : None ,
407+ imports : None ,
408+ extensions : None ,
391409 }
392410 }
393411}
@@ -413,6 +431,8 @@ impl Resource {
413431 location : None ,
414432 tags : None ,
415433 api_version : None ,
434+ import : None ,
435+ extension : None ,
416436 }
417437 }
418438}
0 commit comments