Commit Graph

59 Commits

Author SHA1 Message Date
Opender Singh
21ee2ae790
Upgrade apiconnect-wsdl to remove yargs-parser dependency (#2637) 2020-09-19 15:02:51 +12:00
Opender Singh
65b4838646
Honor variable defaults from servers declaration during OpenAPI3 import (#2151) 2020-08-07 08:13:00 +12:00
Gregory Schier
c90306b35e
Port same deterministic logic from OpenAPI 3 to Swagger 2 importer (#2474)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-08-04 10:09:44 -07:00
Opender Singh
37a711eb6a
Improve fixture test output (#2266) 2020-06-09 11:14:18 +12:00
Sebastian Jonasson
c6a5053ae2
insomnia-importers: Fixed errors thrown when running jest (#2261)
Removed errors that got thrown when running jest from command line.
2020-06-09 09:19:58 +12:00
Sebastian Jonasson
0356b8a082
Add support for OAuth2 to OpenAPI3 importer (#2184)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-06-06 12:59:59 +12:00
Opender Singh
200c354a3a
Handle empty security object in openapi3 (#2170) 2020-05-14 14:11:15 +12:00
Opender Singh
9ead91c9c1
Allow curl import to handle multiple params (#2070) 2020-04-29 11:19:02 +12:00
Opender Singh
2a0dd17293 add fixture test 2020-04-27 18:08:44 +12:00
Opender Singh
751dd0f86a Exclude x- properties under a path 2020-04-27 18:02:33 +12:00
Gregory Schier
7bc219422e
Update Babel and ESLint and fix all related errors (#2032)
* Update Babel and ESLint and fix all related errors

* Update babel-jest
2020-04-09 10:32:19 -07:00
Pocket7878
9f05035e49
feature: Generate Variable Name from SecuritySchemas name parameter. (#1978) 2020-04-03 16:50:50 -07:00
Opender Singh
0b0c5baa0e
OpenAPI v3 import robustness (#2007)
* Make openapi3 import more robust by checking if the server tag exists before consuming it

* Fix formating
2020-03-26 09:56:11 -07:00
YMHuang
327eb5b692
Make the OpenAPI 3.0 support HTTP Bearer scheme (#1953) 2020-03-11 15:41:18 -07:00
Gregory Schier
9b39fbf36f Strip trailing slash on openapi import base_url env 2020-01-24 14:07:52 -05:00
Gregory Schier
3def41113d Fix WSDL importer fixtures 2019-12-11 12:13:26 -05:00
Tomasz Dłuski
705876ace9 [Feature] Wsdl Importer with sample xml (#1675)
* new(importer): wsdl first version (without body)

* add(tests): wsdl importer - adds simple test

fixes addition test

adds comments + place to generate body

* working converter

* adds apiconnect-wsdl npm package

* resets package.json dependencies

* adds lodash and apiconnect-wsdl into importers project
2019-12-11 12:02:08 -05:00
Gregory Schier
81ef50cc6b Less-strict URL parsing in openapi3 importer (Fixes #1782) 2019-12-04 11:56:22 -05:00
Gregory Schier
ede671a057 Fix Swagger2 tests 2019-11-22 13:59:06 -05:00
Matthias Ramsauer
b59759d54f [Feature] [SwaggerV2] Create Folders from implicit defined tags (#1723)
* Create Folders from implicit defined tags

* Update fixtures to reflect swagger2 importer changes
2019-11-22 13:17:17 -05:00
Gregory Schier
be94772382 Fixed swagger2 importer tests 2019-11-22 13:13:36 -05:00
Matthias Ramsauer
65cd4b0146 [Feature] [SwaggerV2] Import Documentation and Authentification (#1724)
* [Feature] [SwaggerV2] Import Documentation and Authentification
Partially implements #1698
Fixes #1007

* Update fixtures to reflect swagger2 importer changes
2019-11-22 13:06:15 -05:00
Matthias Ramsauer
ab990d7a40 [Feature] [SwaggerV2] Body Parameter affect content-type header and implement formData type (#1722)
* Body Parameter affect content-type header and implement formData type

* Enable Tests and update swagger2 fixtures
2019-11-22 12:36:33 -05:00
Gregory Schier
af3a4f0553 OpenAPI spec check for empty properties on import 2019-11-22 10:57:33 -05:00
Elias Meire
414e35ea11 [Feature] [OpenAPI] Support OpenAPI 3 securitySchemes (#1725)
* feat(openapi): Fix parseDocument return type

* feat(openapi): Add support for apiKey and http security
Add support for apiKey and http security in OpenAPI 3 parser

* feat(openapi): Add env variables for OpenAPI security

* feat(openapi): Restore fixture tests, add skip option for failing test

* feat(openapi): Add/adapt test fixtures

* feat(openapi): Improve Cookie formatting

* Empty commit; trigger CI

* feat(openapi): Add type basic to auth
2019-11-01 10:30:44 -04:00
Elias Meire
e8cefefa57 [Feature] [cURL] Parse query parameters from url in importer (#1726)
* feat(curl): parse parameters from url string

* feat(curl): Remove trailing slash after import

* feat(curl): Add exception for failing test

* feat(curl): Parse params from url in curl importer
2019-10-31 11:42:42 -04:00
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