File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 282
282
},
283
283
"OptionsConfig" : {
284
284
"type" : " object" ,
285
- "required" : [
286
- " auto_render_languages"
287
- ],
288
285
"properties" : {
289
286
"auto_render_languages" : {
290
287
"description" : " Assume snippets for these languages contain `+render` and render them automatically." ,
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ pub struct OptionsConfig {
136
136
pub strict_front_matter_parsing : Option < bool > ,
137
137
138
138
/// Assume snippets for these languages contain `+render` and render them automatically.
139
+ #[ serde( default ) ]
139
140
pub auto_render_languages : Vec < SnippetLanguage > ,
140
141
}
141
142
@@ -510,4 +511,9 @@ mod test {
510
511
let config = KeyBindingsConfig :: default ( ) ;
511
512
CommandKeyBindings :: try_from ( config) . expect ( "construction failed" ) ;
512
513
}
514
+
515
+ #[ test]
516
+ fn default_options_serde ( ) {
517
+ serde_yaml:: from_str :: < ' _ , OptionsConfig > ( "implicit_slide_ends: true" ) . expect ( "failed to parse" ) ;
518
+ }
513
519
}
You can’t perform that action at this time.
0 commit comments