Dynamic json body variables#1003
Open
ruwinirathnamalala wants to merge 3 commits into
Open
Conversation
Pull from buerokratt/dev
Pull from buerokratt/dev
|
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




#978
This pull request introduces improvements to how dynamic variable expressions are handled in service assignments and endpoint bodies, as well as fixes to the service testing workflow to ensure state consistency. The changes aim to make variable interpolation more robust, prevent parsing errors, and avoid stale state issues during service testing.
Variable interpolation and parsing improvements:
normalizeAssignValuefunction inservice-builder.tsto strip unnecessaryString()wrappers from API response variables in assignment expressions, ensuring correct handling by downstream parsers.handleEndpointStep(service-builder.ts) andgetEndpointBody(new-services.store.ts) to wrap unquoted${...}expressions in quotes before parsing, preventing JSON parsing errors when dynamic variables are used. [1] [2]Service testing workflow fixes:
runServiceTestinservice-tester.tsto clear previous test states before running a new test, and to re-fetch the latest nodes from the store to avoid using stale snapshots, ensuring accurate validation of node states during repeated tests. [1] [2]