Commit Graph

112 Commits

Author SHA1 Message Date
Ankit Saini
f5dfefd9c7 Fix detectRootFiles not working in browser 2022-05-27 11:43:07 +05:30
Luis Tejeda
ef829769c1 remove local ref in path
remove the local reference in path
2022-05-02 21:14:40 -05:00
Luis Tejeda
c65d80ae05 add path solving while searching
add path solving while searching
2022-05-02 21:14:40 -05:00
Luis Tejeda
0f23e60afd ignore web refs like http...
ignore web refs and fix the root location
2022-05-02 21:14:40 -05:00
Luis Tejeda
2fefe62dc1 Add dfs algorithm
Add dfs algorithm
2022-05-02 21:14:39 -05:00
Luis Tejeda
e98d8af870 remove unnecesary method
remove unnecesary method
2022-05-02 21:14:39 -05:00
Luis Tejeda
8245b36f2d add support for empty content
no content and multi version example
2022-05-02 21:14:39 -05:00
Luis Tejeda
f200446d92 Update schemapack.js
Add method description
2022-05-02 21:14:39 -05:00
Luis Tejeda
30cc74b720 add multiple versions support
add multiple versions support
2022-05-02 21:14:36 -05:00
Luis Tejeda
36e83721dd Added first scenarios
Added first scenarios
2022-05-02 21:09:50 -05:00
Erik Mendoza
fa623d32c0 Fix swagger to openapi convertion
Removing async await implementation and using callback implementation instead.
Fixin the related tests
2022-04-28 16:38:18 -05:00
Erik Mendoza
ae43c43f6f adding multifile swagger examples, adding tests to validate merging, merge and validate support for swagger 20 2022-04-19 19:33:26 -05:00
Erik Mendoza
6078a961f9 Adding swagger support in convert 2022-04-14 14:51:28 -05:00
Erik Mendoza
888bd70565 Adding swagger support in convert 2022-04-14 14:50:14 -05:00
Luis Tejeda
50ba85ce68 Change validation input when version is 3.1.x
if the option includeWebhooks is false and there are no paths (only webhooks or componentes) throw error.
2022-02-09 12:46:31 -06:00
umeshp7
3368be1528 Merge branch 'develop' into feature/sync-develop-and-split-develop 2022-02-08 20:25:03 +05:30
Luis Tejeda
e2d324aa4a support for defined schema dialect property on validate transaction 2022-02-03 12:24:50 -06:00
Vishal Shingala
8bce10359f Fixed default indentation for space from 1 char space to 2 chars 2022-02-01 12:06:35 +05:30
Erik Mendoza
27465dbadd Fix getOptions function, now version must be send inner the criteria object, adding webhooks support in convertion process, adding related tests to supported scenarios 2022-01-26 22:37:32 -06:00
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