From c175b0dc7f47f0eff6c343a7b07f17665ff9cbeb Mon Sep 17 00:00:00 2001 From: Jordan Lev Date: Wed, 15 Nov 2017 23:18:03 -0600 Subject: [PATCH] Mention the handy `ignoreExtraKeys()` method --- components/config/definition.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/config/definition.rst b/components/config/definition.rst index 559ed61c0dd..86ca9ea3b27 100644 --- a/components/config/definition.rst +++ b/components/config/definition.rst @@ -210,6 +210,9 @@ Before defining the children of an array node, you can provide options like: If called (with ``false``), keys with dashes are *not* normalized to underscores. It is recommended to use this with prototype nodes where the user will define a key-value map, to avoid an unnecessary transformation. +``ignoreExtraKeys()`` + Allows extra config keys to be specified under an array without + throwing an exception. A basic prototyped array configuration can be defined as follows::