firecamp-io / firecamp

VSCode for APIs, Postman Alternative.
https://firecamp.dev
317 stars 22 forks source link

Imports only one parameter #167

Closed vlad-velichko closed 3 years ago

vlad-velichko commented 3 years ago

Import imports only the last query parameter from Json.

2. To Reproduce

Steps to reproduce the behavior:

  1. Import Json with request with several query parameters, like {"paths": {"/api/end": { "get": { "parameters": [ { "name": "param1", "in": "query", "required": false, "type": "integer", "format": "int32" }, { "name": "param2", "in": "query", "required": false, "type": "array", "items": { "type": "integer", "format": "int32" }, "collectionFormat": "multi" }]}}}

Will be imported the request /api/end with only one parameter param2


welcome[bot] commented 3 years ago

Welcome to the Firecamp! Thanks and congrats for opening your very first issue in Firecamp. Join the Discord community here https://discord.gg/8hRaqhK Hope you have a great time here :)

Nishchit14 commented 3 years ago

@vlad-qa-auto May I know which format/file you're importing in Firecamp? the JSON snippet you've shared seems unknown format to me. Is it JSON schema?

vlad-velichko commented 3 years ago

@Nishchit14, it's a part of my huge Json from Swagger

Nishchit14 commented 3 years ago

please try now @vlad-qa-auto , It's fixed now. Thank you for sharing it. released https://github.com/firecamp-io/Firecamp/releases/tag/v2.0.11