Skip to content
New issue

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

WIP: Experimental JSON storage support #444

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

keawade
Copy link

@keawade keawade commented Oct 7, 2023

Experimental support for JSON files as an alternative to Bru Lang files. See #407 for more details.

This isn't quite functional yet but I think it's close.

  • Adds a new lang: 'bru' | 'json' property. Defaults to bru if not specified
  • Currently only affects environment files
  • No UI changes have been made so enabling JSON support requires editing the bruno.json file manually

I got it mostly working at one point and then somewhere in my cleanup I started going back and forth between the environment file data not being loaded but not throwing an errors and the environment file failing to load while throwing errors.

I've been having a rough time grokking the dispatcher and where relevant processing is actually done. I've gone back and forth pretty frequently between bruno-electron/src/app/watcher.js and bruno-electron/src/ipc/collection.js and I'm either missing something in there or there's something else involved?

I'm a TypeScript developer by trade so I'm having additional complications just trying to navigate this codebase without reliable type information. I've added some JSDoc annotations to help but I'm not sure how much more effort I'm willing to invest in this. I'll take another look tomorrow as it's a bit late and being tired doesn't help. 😅

@helloanoop helloanoop added this to the v2 milestone Oct 18, 2023
@helloanoop helloanoop self-assigned this Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants