We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
my custom imposter config
{ "port":"8029", "protocol":"custom", "name":"pike", "array": ["a", "b"] }
mb code
function merge (defaults, overrides) { const result = clone(defaults); Object.keys(overrides).forEach(key => { if (typeof overrides[key] === 'object' && overrides[key] !== null) { result[key] = merge(result[key] || {}, overrides[key]); } else { result[key] = overrides[key]; } }); return result; }
since typeof Array is object imposter will get wrong args:
{ "port":"8029", "callbackURLTemplate":"http://localhost:8025/imposters/:port/_requests", "loglevel":"debug", "allowInjection":true, ... "array":{"0":"a", "1":"b"} }
mb must leave arrays as is
mb breaks the config
mb version 2.7.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
my custom imposter config
mb code
since typeof Array is object imposter will get wrong args:
Expected behaviour
mb must leave arrays as is
Actual behaviour
mb breaks the config
mb version 2.7.0
The text was updated successfully, but these errors were encountered: