Giter VIP home page Giter VIP logo

Comments (9)

jozsefsallai avatar jozsefsallai commented on May 30, 2024 1

Really sorry for the delay. I'll look into this issue in the coming days.

@Sergeant61 it would be nice if I could see what the JSON file looks like so that I can reproduce the issue locally. You can create a gist of it or just upload it to https://fastbin.xyz

from insomnia-documenter.

jozsefsallai avatar jozsefsallai commented on May 30, 2024 1

@Prathik-Jain Your insomnia export doesn't seem to have a workspace block (a block whose _type is workspace). Even Insomnia fails to import it properly (at least on my end). I'm not sure why this happened tbh.

@Sergeant61 JSON with comments is not currently supported, but I'll think about ways to support it.

from insomnia-documenter.

jozsefsallai avatar jozsefsallai commented on May 30, 2024 1

@Prathik-Jain I'm using Insomnia Core version 2020.3.3 (latest).

@Sergeant61 This is fixed in the latest release. See: #23 (comment)

from insomnia-documenter.

Sergeant61 avatar Sergeant61 commented on May 30, 2024

+1

image

from insomnia-documenter.

Sergeant61 avatar Sergeant61 commented on May 30, 2024

I found the problem. It says comment line in jsons in bodies, but comment line is not supported in real json. In our insomnia.json (v4) file, we had bodies with comment lines. The problem disappeared when I arranged them. Like this:

{ "cart": { "variant_id": 10, "quantity": 1, "extra_ids": [4] // optional } }

from insomnia-documenter.

Prathik-Jain avatar Prathik-Jain commented on May 30, 2024

I found the problem. It says comment line in jsons in bodies, but comment line is not supported in real json. In our insomnia.json (v4) file, we had bodies with comment lines. The problem disappeared when I arranged them. Like this:

{ "cart": { "variant_id": 10, "quantity": 1, "extra_ids": [4] // optional } }

does this not break the JSON itself?

from insomnia-documenter.

Prathik-Jain avatar Prathik-Jain commented on May 30, 2024

@Prathik-Jain Your insomnia export doesn't seem to have a workspace block (a block whose _type is workspace). Even Insomnia fails to import it properly (at least on my end). I'm not sure why this happened tbh.

Oops! Let me see. I remember insomnia getting updated after the creation of this issue. Ill get back.

Thanks @jozsefsallai

from insomnia-documenter.

Sergeant61 avatar Sergeant61 commented on May 30, 2024

I found the problem. It says comment line in jsons in bodies, but comment line is not supported in real json. In our insomnia.json (v4) file, we had bodies with comment lines. The problem disappeared when I arranged them. Like this:
{ "cart": { "variant_id": 10, "quantity": 1, "extra_ids": [4] // optional } }

does this not break the JSON itself?

Insomnia designer is also supported in the body part. I'm not sure if there should be such a feature. But the insomnia documenter doesn't work right because of this. Also, when using this feature, if it is left blank for replace, I get a null error. @jozsefsallai

from insomnia-documenter.

Sergeant61 avatar Sergeant61 commented on May 30, 2024

image
image
That's why I do it like this:
image

from insomnia-documenter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.