mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #1097] Linter error is shown for response body if response is a JSON Array #383
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#383
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 @amodmahajan2016 on GitHub (Aug 19, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1097
Originally assigned to: @AndrewBastin on GitHub.
I hit an API that gives a response in a JSON array.
https://restful-booker.herokuapp.com/booking
Response -
[{"bookingid":7},{"bookingid":4},{"bookingid":5},{"bookingid":6},{"bookingid":10},{"bookingid":9},{"bookingid":1},{"bookingid":12},{"bookingid":2},{"bookingid":3},{"bookingid":8},{"bookingid":11}]
But postWoman gives an error:-

@liyasthomas commented on GitHub (Aug 20, 2020):
Probably an issue with language selector in JSON lens.
github.com/hoppscotch/hoppscotch@9734e4d859/components/lenses/renderers/JSONLensRenderer.vue (L46)Will look into it ASAP.
@liyasthomas commented on GitHub (Aug 22, 2020):
@AndrewBastin any idea why this is happening?
refer: https://stackoverflow.com/questions/31136597/how-to-make-an-intellisense-for-array-type-json-in-ace-js-editor
@AndrewBastin commented on GitHub (Aug 22, 2020):
Oops. We use the JSON parser for linting from graphiql. They don't allow root to be an array even though it is valid according to the JSON spec. Well, it is not a breaking issue, but I will still have a look at fixing it.
@AndrewBastin commented on GitHub (Aug 26, 2020):
@amodmahajan2016 it should be fixed now. But please feel free to reopen if it still persists ^_^