File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -250,16 +250,21 @@ public function getDynamicTemplateNode()
250250 $ node = $ builder ->root ('dynamic_templates ' );
251251
252252 $ node
253- ->useAttributeAsKey ('name ' )
254253 ->prototype ('array ' )
255- ->children ()
256- ->scalarNode ('match ' )->end ()
257- ->scalarNode ('unmatch ' )->end ()
258- ->scalarNode ('match_mapping_type ' )->end ()
259- ->scalarNode ('path_match ' )->end ()
260- ->scalarNode ('path_unmatch ' )->end ()
261- ->scalarNode ('match_pattern ' )->end ()
262- ->append ($ this ->getPropertiesNode ())
254+ ->prototype ('array ' )
255+ ->children ()
256+ ->scalarNode ('match ' )->end ()
257+ ->scalarNode ('unmatch ' )->end ()
258+ ->scalarNode ('match_mapping_type ' )->end ()
259+ ->scalarNode ('path_match ' )->end ()
260+ ->scalarNode ('path_unmatch ' )->end ()
261+ ->scalarNode ('match_pattern ' )->end ()
262+ ->arrayNode ('mapping ' )
263+ ->prototype ('variable ' )
264+ ->treatNullLike (array ())
265+ ->end ()
266+ ->end ()
267+ ->end ()
263268 ->end ()
264269 ->end ()
265270 ;
You can’t perform that action at this time.
0 commit comments