Commit Graph

93 Commits

Author SHA1 Message Date
Erik Mendoza
ded6161ea3 mergeAndValidate support, addign some methods to get the version from inputs provided as folder, adding unit tests, fix schema utils reference in mergeAndValidate 2022-01-11 21:15:18 -06:00
Erik Mendoza
da4fae4977 validating transactions from openapi 3.1 spec, upgrading ajv library, adding tests to new scenarios 2022-01-03 10:21:43 -06:00
Erik Mendoza
53be2a14bb Removing some commented code, adding version value to concrete schemaUtils 2021-12-08 14:16:44 -06:00
Erik Mendoza
34f31e9931 Fix conversion process for openapi 3.1, adding schemaUtils31X and schemaUtils30X, adding unit tests 2021-12-07 21:52:51 -06:00
Erik Mendoza
b5d53fb54b Getting spec version based on the input data and type 2021-11-26 14:42:46 -06:00
Luis Tejeda
d6fa8832eb Added test for 31x
Added test for 31x
2021-11-26 14:42:46 -06:00
Luis Tejeda
79863f3fea Update schemapack.js
Return to schemapack version handling and remove schemapack services
2021-11-26 14:37:28 -06:00
Vishal Shingala
e6b3bb464d Fixed issue where validation was giving INVALID_TYPE instead of MISSING_IN_REQUEST if path variable is not present in transaction 2021-10-05 13:01:39 +05:30
umeshp7
ef929f147e Use browser as top level const 2021-06-23 10:08:12 +05:30
umeshp7
2381497122 Add handling for browser in getRootFiles function 2021-06-15 15:29:56 +05:30
umeshp7
2f35ade6fd Use pathBrowserify when origin is browser 2021-06-14 23:17:29 +05:30
Vishal Shingala
490aa6bbf0 Merge branch 'develop' of github.com:postmanlabs/openapi-to-postman into feature/windows-import-folder-fix 2021-01-28 18:50:08 +05:30
Vishal Shingala
b9306731b0 Fixed issue where collection did not contain name for specification with empty string as title 2021-01-28 16:31:11 +05:30
Vishal Shingala
f9bda0276a Use process instead of window to decide path module to facilitate electron apps 2020-12-29 02:08:52 +05:30
Vishal Shingala
bdd163fca6 Fixed issue with import folder flow on windows 2020-12-21 12:02:57 +05:30
Vishal Shingala
b5f9fb1c49 Added support for Auth params in response/example. (#286)
* Added support for correct auth params in original request of response

* Updated collection json schema to latest

* Added tests for feature - response auth params support

* Moved auth params in response behind an option

* Updated option name and description to follow consistent casing

* Updated option id for including auth params in response to be more suitable

Co-authored-by: Vishal Shingala <vishalkumar.shingala@postman.com>
2020-09-09 12:28:17 +05:30
Vishal Shingala
1215d9de15 Added support for internal $ref resolution in validation flows 2020-09-01 17:55:51 +05:30
umeshp7
e4c8bcf6a1 fix incorrect variable calling 2020-07-17 12:15:24 +05:30
umeshp7
d555e1f791 Add missing variable 2020-07-15 01:21:30 +05:30
umeshp7
782e213e5d Merge develop into performance-improvements 2020-07-14 15:56:22 +05:30
Vishal Shingala
0a2c221d29 Added support for collection variables for local servers in suggested request for validation. (#247)
* Added support for collection variables for local servers in suggested request

* Suggest collection variable from baseUrl and vars if no path level servers are defined

* Keep endpoint prop same across all schema

* Fixed invalid Url and collection variable when path level server was present

* To not include variable generated from empty server object

* Rebased branch to update variable name handling in missing endpoint suggestion

* Updated variable name handling to more readable format

* fixed wrong checking for path level servers

* Fixed issue where path level server was always picked up

* Fixed failing test

Co-authored-by: Vishal Shingala <vishalkumar.shingala@postman.com>
Co-authored-by: Abhijit Kane <abhijitkane@gmail.com>
2020-07-14 11:23:17 +05:30
umeshp7
a26d59fd45 Merge branch 'develop' into feature/performance-improvements 2020-07-08 16:48:58 +05:30
umeshp7
7a8103eff7 Use optimizeConversion in validateTransaction function 2020-07-08 10:58:26 +05:30
umeshp7
7ab167aa94 Add a global conversion option called optimizeConversion 2020-07-08 10:38:26 +05:30
Vishal Shingala
69d38cb048 Keep matched path var value as is if no transaction path variable found 2020-07-07 18:35:53 +05:30
Vishal Shingala
33ad0f9800 Fixed issue where mismatch was happening even when correct path var is present 2020-07-06 17:51:58 +05:30
Umesh Pathak
f7483ba914 Merge pull request #239 from postmanlabs/feature/oas-resolver-update
Updates for making oas resolver work on browser
2020-06-29 12:30:10 +05:30
umeshp7
dcad5ea832 Use in operator to check for content in input.data 2020-06-29 11:55:57 +05:30
umeshp7
359acb6d77 Change stack limit on the basis of spec size, and complexity 2020-06-24 21:18:12 +05:30
Abhijit Kane
a7273ff03d Merge pull request #243 from postmanlabs/feature/missing-endpoint-suggestion
Suggest request for missing endpoints in collection.
2020-06-23 11:04:19 +05:30
Vishal Shingala
948ef2505d Suggest fix for missing endpoints in collection 2020-06-22 16:52:31 +05:30
umeshp7
8278411a2c Merge develop into feature/oas-resolver-update 2020-06-19 21:40:34 +05:30
umeshp7
0bbcb11953 Add appropriate comments wherever necessary 2020-06-19 21:36:08 +05:30
Vishal Shingala
f455853483 Added support for validating content type header correctly 2020-06-17 16:15:54 +05:30
umeshp7
5c0558cfa5 Add test for browser folder upload and add fix for other OSes using path-browserify 2020-06-17 02:12:57 +05:30
umeshp7
f48b342a2d Updates for making oas resolver work on browser 2020-06-15 17:29:06 +05:30
Vishal Shingala
a6d78eda2b Merge branch 'develop' of github.com:postmanlabs/openapi-to-postman into feature/suggest-fixes 2020-06-14 23:34:33 +05:30
Abhijit Kane
8626dce828 Merge pull request #222 from postmanlabs/feature/strict-request-matching
Strict request matching for validation.
2020-06-14 23:20:30 +05:30
Abhijit Kane
dd03a65f9e Merge pull request #228 from postmanlabs/feature/missing-endpoints
Added support for missing endpoints in collection.
2020-06-14 23:18:08 +05:30
Vishal Shingala
e1d7fef590 Fixed invalid/no matches incase path variable value is empty in collection 2020-06-10 14:26:52 +05:30
Vishal Shingala
981018e260 Added support for metadata validation 2020-06-03 18:09:10 +05:30
Vishal Shingala
e08e2e0158 Added support for missing endpoints in collection 2020-06-02 11:55:31 +05:30
Vishal Shingala
2c422728f0 Added support for suggesting available fixes 2020-06-01 19:09:48 +05:30
umeshp7
8782534f43 Update auth assignment at collection level 2020-06-01 11:46:29 +05:30
umeshp7
4e4cc319d5 Add test case for empty auth at collection level 2020-05-29 15:04:14 +05:30
Vishal Shingala
65ec7f877c Added support for strict request matching option 2020-05-28 16:49:58 +05:30
umeshp7
b5f546d15d Add global level security schemes to collection level auth 2020-05-21 05:22:04 +05:30
Abhijit Kane
bb054b0e83 Merge pull request #206 from postmanlabs/feature/support-nullable
Added support for nullable keyword in Validation.
2020-05-14 23:28:19 +05:30
Vishal Shingala
e25e234fa0 Added support for using Tags for folder creation (folderStrategy option) 2020-05-11 14:54:55 +05:30
umeshp7
46b7913911 Merge develop into feature/meta-data-function 2020-04-27 21:01:19 +05:30