This PR refactors local map and provider resolution. It removes overly complicated resolveValue function and it introduces separate functions for local map and provider resolution. It also improves validation of loaded files.
This should NOT be braking change. But in cases of poorly configured SDK this change may lead to throwing valid errors (we are checking that eg. profile id in map ast matches profile id in super.json)
This PR is ready we just need to decide if this is shippable under minor change.
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] I have updated the documentation accordingly. If you are changing code related to user secrets you need to really make sure that security documentation is correct.
Description
This PR refactors local map and provider resolution. It removes overly complicated
resolveValue
function and it introduces separate functions for local map and provider resolution. It also improves validation of loaded files.This should NOT be braking change. But in cases of poorly configured SDK this change may lead to throwing valid errors (we are checking that eg. profile id in map ast matches profile id in super.json)
This PR is ready we just need to decide if this is shippable under minor change.
fixes: https://github.com/superfaceai/one-sdk-js/issues/279
Motivation and Context
Types of changes
Checklist: