x24
}, + 'x25': {...base, __type__: String, component: LongTextField}, + 'x26': {...base, __type__: Array, initialCount: 1, children:x27
}, + 'x26.$': {...base, __type__: String}, + 'x27': {...base, __type__: Array, minCount: 1, initialCount: 1, maxCount: 2}, + 'x27.$': {...base, __type__: String}, + 'x28': {...base, __type__: String, component: ErrorField}, + 'x31': {...base, __type__: String, allowedValues, checkboxes, component: SelectField}, + 'x32': {...base, __type__: String, component: HiddenField}, + 'x33': {...base, __type__: String, component: HiddenField, value: undefined}, + 'x34': {...base, __type__: Number, step: 4} + }; + + const bridgeName = name => name.replace(/\.\d+/g, '.$'); + const bridge = { + getError: (name, error) => error ? {noop: 0} : undefined, + getErrorMessage: (name, error) => error ? 'message' : undefined, + + getErrorMessages: error => error + ? Object.keys(schema) + : [], + + getField: name => schema[bridgeName(name)], + getType: name => schema[bridgeName(name)].__type__, + getProps: name => ({...schema[bridgeName(name)], __type__: null}), + + getInitialValue: name => schema[bridgeName(name)].__type__ === Date + ? dateA + : schema[bridgeName(name)].allowedValues && schema[bridgeName(name)].__type__ !== Array + ? schema[bridgeName(name)].allowedValues[0] + : schema[bridgeName(name)].__type__(), + + getSubfields: name => name + ? schema[bridgeName(name)].subfields || [] + : Object.keys(schema).filter(field => field.indexOf('.') === -1), + + getValidator: () => validator + }; + + const wrapper = mount( +