All this "configs" section is correct, but it means we'll have to maintain this code when new options are added or modified to select2. I'd prefer having a simple arrayNode without any rules, like it's done for other widgets.