mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3551] [feature]: Ability to convert JSON responses into programming language interface/types #1217
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1217
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @InDIOS on GitHub (Nov 14, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3551
Is there an existing issue for this?
Summary
Would be great to have an option to export/copy JSON responses as interface/type in the programming language of choice like ThunderClient does or this website quicktype.io
Why should this be worked on?
Some other REST Clients implement this feature an it is very useful in some cases where you are unable to get to the response interface
@rajdip-b commented on GitHub (Nov 19, 2023):
Would using quicktype.io be allowed for this feature? If yes, then I would like to give it a shot!
@AndrewBastin @liyasthomas
@liyasthomas commented on GitHub (Nov 19, 2023):
quicktype looks good. @AndrewBastin if we don't have this scoped to our Q4 roadmap we can assign this to community contributions right?
@AndrewBastin commented on GitHub (Nov 19, 2023):
Sure we can see. You can pick this up @rajdip-b
@rajdip-b commented on GitHub (Nov 19, 2023):
On it!
@rajdip-b commented on GitHub (Nov 19, 2023):
Hey, can anyone help me with the component for this section? I can't seem to find it :(

@liyasthomas commented on GitHub (Nov 19, 2023):
That would be: https://github.com/hoppscotch/hoppscotch/blob/main/packages/hoppscotch-common/src/components/lenses/renderers/JSONLensRenderer.vue
@rajdip-b commented on GitHub (Nov 19, 2023):
@liyasthomas @AndrewBastin Guys, does this look ok?

@AndrewBastin commented on GitHub (Nov 19, 2023):
@rajdip-b please open a PR (draft PR if incomplete) to receive feedback on the implementation.
@rajdip-b commented on GitHub (Nov 19, 2023):
Sure thing!
@rajdip-b commented on GitHub (Nov 19, 2023):
@AndrewBastin I've linked a PR to the issue. Would you please review it?
@liyasthomas commented on GitHub (Dec 20, 2023):
Thanks for your patience and valuable feedback. This issue has been resolved in the latest release.
Closing this ticket as the fix is now available in the recent version. Feel free to reach out if you encounter any further concerns.