Commit Graph

33 Commits

Author SHA1 Message Date
Gregory Schier
76f5d8da1a Only handle supported Curl args during import (Fixes #1697) 2019-10-07 13:45:05 -07:00
Gregory Schier
3e2311e4e1 Make OpenAPI importer generate deterministic IDs 2019-08-15 12:56:32 -07:00
Gregory Schier
972477d2d4 Fix for Swagger and OpenAPI importers using wrong workspace key 2019-08-09 16:45:25 -04:00
Marc Easen - Amplience
3e1ac1f68e feat(oas3 readonly): ignore fields marked as readOnly when generating request bodies (#1618) 2019-08-05 11:35:48 -04:00
Gregory Schier
8fda24ae47 Small sidebar refactor and moved ESLint to top level 2019-08-02 15:01:01 -04:00
Forrest Ye
a4f56ffe7d [fix] do not assume object param type has properties (#1570) 2019-06-24 16:20:01 -04:00
Raphaël Medaer
5175515e99 Try importing OpenAPI3 even if validation fails (Fixes #1354) (#1515)
This is a port of fixes did for Swagger in c2b4b37.
2019-05-29 15:21:45 -04:00
Gregory Schier
e3d5dc59a3 Better missing factory error message for OpenAPI (#1481) 2019-05-07 10:41:13 -04:00
Gregory Schier
c2b4b373b9
Try importing Swagger even if validation fails (Fixes #1354) (#1462) 2019-04-25 21:27:01 -07:00
Gregory Schier
300ede1ff9 Merge branch 'develop' of github.com:getinsomnia/insomnia into pull/1396 2019-04-18 10:23:15 -07:00
Gregory Schier
9208505bd9 Choose between YAML and JSON during export 2019-04-17 21:21:29 -07:00
Behrooz Shabani
86860e455b making exports git friendly (#1409)
As YAML supports multi line content, each line of requests' body will
appear in separate line when exported. Hence, making the exports git
friendly.
2019-04-17 20:50:23 -07:00
Joshua May
67db01dd5e OpenAPI v3 importer (#1430)
* Added swagger3 placeholder asset

* Added jest as project dependency, tests are running

* Empty test, but it's green now

* swagger3 -> openapi3

* Updated swagger-parser, tests still green

* Refactor: extract unthrowableParseJson to utils

* All of the parsers should be running, duh

* Oh, duh, that's how we update major versions in npm

* Our first openapi3 test is green

* Two green tests

* Three green tests

* Snapshotting a (mostly) green tree, minus some necessary change from swagger2

* Green tests!
2019-04-17 17:16:03 -07:00
Gregory Schier
88b0bb784f Add trailing commas to ESLint + Prettier 2018-12-12 12:36:11 -05:00
Timothy Lim
7bdd40892d Fix undefined id causing improper import (#1302)
Fix undefined id causing improper import
2018-12-12 10:29:10 -05:00
dhruv944
2c49563014 Postman collection variables and variable uncovering (#1274)
* fixed #1172

Collection variable added to folder environment

* modified code implementation #1172

* refactored code

* feature implemented #754

Code implemented to show the sorce of variable

* #1155 fixed

* code restructuring

* fixed #773

Added hotkey alt+u which swaps variable name with value and vice versa.
2018-11-30 00:50:30 -05:00
Joe Bauser
182acbef2b Support postman basic, digest, bearer, oauth, and aws auth (#1244)
Add support for importing 5 new authentication types from both
Postman v2.0 and v2.1 import formats.

- Basic Auth (Fixes #1235)
- Bearer Tokens (Fixes #1236)
- Digest Auth username and password (Fixes #1237)
- AWS IAMv4 Authentication (Fixes #1241)
- Oauth 1.0 and Oauth 2.0 (Fixes #1240)

Note: For Oauth2.0 this means setting authorization to Oauth2 but
generating a disabled config, since postman does not export anything we
can use to fill our config values.
2018-11-05 20:38:43 -04:00
Gregory Schier
dcfa960be1 Merge branch 'develop' of github.com:getinsomnia/insomnia into develop 2018-11-05 19:36:11 -05:00
Gregory Schier
fa6242bf07 Handle dollar sign curl imports (Fixes #1245) 2018-11-05 19:35:59 -05:00
Joe Bauser
65a08a2163 Fixes #682: Support postman import schema v2.1.0 (#1233) 2018-10-27 00:37:58 -04:00
Timothy Lim
ebd3761241 Support Swagger tags (#1211) 2018-10-17 14:52:54 -04:00
Gregory Schier
99de4725fa prettier entire project 2018-10-17 12:42:33 -04:00
Matthias Ramsauer
971a2b49aa filter "parameters method" (#1197) 2018-10-17 11:50:05 -04:00
Atvaark
d3c002410b Preserve HAR entry comment during import (#1198)
This will fix an HAR export/import issue where names are lost.
Fixes #1153
2018-10-03 17:33:12 -04:00
Gregory Schier
4901f03041 Add Prettier 2018-06-25 13:42:50 -04:00
Claudio Bley
28a0b7dc17 Fix parameter replacement in swagger importer (#861)
The regex was greedily matching any character which causes problems with
multiple path parameters in a route and it was only replacing once:

input: `/api/v1/{channel}/items/{id}`
output: `/api/v1/{{ channel}/items/{id }}`
2018-04-13 08:18:30 -04:00
Gregory Schier
bf97f94825 Fix Swagger 2 parameter types 2018-01-17 16:53:30 +07:00
Gregory Schier
82621e8fb3 Fix for swagger2 importer 2018-01-17 12:18:10 +07:00
slawus
e987931805 Feature/swagger2 importer (#695)
* Added support for async importers

* Swagger importer v0.1 - supports import of workspace, environment and endpoints from swagger 2.0 specifications. Supports query params, headers and body. Mocks body of application/json endpoitns

* Refactor: added comments, removed function-in-function declarations

* Fixed import of yaml files. Added tests for both .json and .yaml
2018-01-16 14:02:12 +07:00
slawus
71ed57143e Added support for async importers (#694) 2018-01-16 12:51:28 +07:00
Gregory Schier
1cc7e64ade Handle Postman url object format 2017-11-27 17:21:08 +00:00
Gregory Schier
3f8326570d Publish
- insomnia-plugin-base64@1.0.2
 - insomnia-plugin-default-headers@1.0.3
 - insomnia-plugin-file@1.0.2
 - insomnia-plugin-hash@1.0.2
 - insomnia-plugin-now@1.0.2
 - insomnia-plugin-request@1.0.2
 - insomnia-plugin-response@1.0.2
 - insomnia-plugin-uuid@1.0.2
 - insomnia-cookies@0.0.3
 - insomnia-importers@1.5.3
 - insomnia-prettify@0.1.0
 - insomnia-url@0.1.0
 - insomnia-xpath@0.0.3
2017-11-26 23:04:47 +00:00
Gregory Schier
549ce23ce8
Merge All Repositories into Monorepo for easier maintenance (#629)
* All projects into monorepo

* Update CI

* More CI updates

* Extracted a bunch of things into packages

* Publish

 - insomnia-plugin-base64@1.0.1
 - insomnia-plugin-default-headers@1.0.2
 - insomnia-plugin-file@1.0.1
 - insomnia-plugin-hash@1.0.1
 - insomnia-plugin-now@1.0.1
 - insomnia-plugin-request@1.0.1
 - insomnia-plugin-response@1.0.1
 - insomnia-plugin-uuid@1.0.1
 - insomnia-cookies@0.0.2
 - insomnia-importers@1.5.2
 - insomnia-prettify@0.0.3
 - insomnia-url@0.0.2
 - insomnia-xpath@0.0.2

* A bunch of small fixes

* Improved build script

* Fixed

* Merge dangling files

* Usability refactor

* Handle duplicate plugin names
2017-11-26 20:45:40 +00:00