apidash
apidash copied to clipboard
Added Env. Variable Suggestions for JSON request body
PR Description
The suggestion box for env variables now appear on top of the json request editor when it gets triggered
Related Issues
- Closes #592
Checklist
- [x] I have gone through the contributing guide
- [x] I have updated my branch and synced it with project
mainbranch before making this PR - [x] I am using the latest Flutter stable branch (run
flutter upgradeand verify) - [ ] I have run the tests (
flutter test) and all tests are passing
Added/updated tests?
We encourage you to add relevant test cases.
- [x] Yes
- [ ] No, and this is why: please replace this line with details on why tests have not been included
OS on which you have developed and tested the feature?
- [x] Windows
- [ ] macOS
- [ ] Linux
i have tried to add the highlighting for the variable itself inside the JSON editor, but I couldn't; the JsonField does not allow for external style injection the current JsonTextFieldEditor is tightly coupled with JsonField Widget which uses its own regExp internally for each style we pass to it and the styles are fixed. I can't add a custom style for a certain regexExpression I want.