Closed martinalbert closed 3 years ago
This issue was actually problem in SDK - it is fixed now. So in CLI we just need to use not beta version of SDK (when it will be released).
I was using incorrect structure of super.json, mutation works correctly 👍🏻
cli version:
@superfaceai/cli/0.0.19 darwin-x64 node-v15.4.0 (with @superfaceai/one-sdk@0.0.29-beta.4+91971d72, @superfaceai/parser@0.0.17)
testing configure command
sf configure mock -p starwars/character-information
priority
was added, but only contains specified mock
provider (might be better to scan for other providers and add them as well)
Description
install
command removes retryPolicy, priority or providerFailover fields from super.jsonExpected Behaviour
CLI shouldn't remove existing fields. After
install
is executed, super.json should be modified only on places where it should be modified, if new profile is installed, no other profile should be affected and if already existing profile is installed, his settings in super.json should be preserved.Current Behaviour
Currently
install
modifies whole super.json document and removes mentioned fields. This behaviour is not occurring only when usingsf install
without specifying profile or force flag.Possible Solution
Update mutate module for super.json to work with new superjson schema.
Steps to Reproduce