Commit Graph

132 Commits

Author SHA1 Message Date
Luis Tejeda
a645bff961 Merge branch 'split/develop/multiFileSupport' into feature/swagger20BundleSupport 2022-06-24 11:25:37 -05:00
Vishal Shingala
ab2821584d Merge branch 'split/develop/multiFileSupport' of github.com:postmanlabs/openapi-to-postman into feature/add-reference-map-bundle 2022-06-24 11:36:45 +05:30
Luis Tejeda
920ea81dcc homologate from multifile 2022-06-23 11:26:03 -05:00
Vishal Shingala
65fbc0f730 Added support for getting reference map via option 2022-06-23 19:26:44 +05:30
Luis Tejeda
eed8a2c5d3 ignore invalid nodes
ignore invalid nodes
2022-06-22 17:49:31 -05:00
Luis Tejeda
2faa3fde09 avoid reading from fs 2022-06-22 11:27:14 -05:00
Erik Mendoza
81cb60a452 Merge branch 'split/develop/multiFileSupport' into feature/swagger20BundleSupport 2022-06-09 18:39:20 -05:00
Luis Tejeda
9b9164c0c2 Add root detection
Add root detection in bundle and detect related files
2022-06-09 12:16:11 -05:00
Luis Tejeda
bb3a3c00d9 Change defatult version
change the default version from 3.0.0 to 3.0 and validate incorrect input.type value (different than multiFile)
2022-06-08 16:51:56 -05:00
Luis Tejeda
c0254456ae bundle only found content
bundle only the files that has content and add test for filtering root files in bundle according to the version.
2022-06-08 13:12:57 -05:00
Luis Tejeda
eafe766c8b look for the root content in data array
look for the root content in the data array instead of expecting content to be present in the root object
2022-06-07 16:46:43 -05:00
Luis Tejeda
0a81fd8a96 Folder for multifile and multi data res
Change the use of folder and now use multiFile as option type value.
Return a JS object instead of a json string
return a data array in response
2022-06-06 17:14:08 -05:00
Luis Tejeda
2e73ed22bb Fix input validation in multi file APIs 2022-06-06 11:23:39 -05:00
Luis Tejeda
7b5e68b2b6 Issue with empty roots bundle 2022-06-03 16:34:23 -05:00
Luis Tejeda
b7e2597cc1 Add input validation for Multifile APIs
Add input validation for Multifile APIs
2022-06-03 12:54:10 -05:00
Vishal Shingala
76944f931f Merge branch 'split/develop/swaggerModuleIntegration' of github.com:postmanlabs/openapi-to-postman into split/develop/multiFileSupport 2022-05-31 15:43:21 +05:30
Erik Mendoza
9a453e72cd Merge pull request #522 from postmanlabs/feature/processingNodes
Feature/processing nodes
2022-05-27 19:54:38 -05:00
Luis Tejeda
e2035a5f19 Fix PR request changes
Fix PR request changes
2022-05-27 16:09:23 -05:00
Luis Tejeda
3e62efcf4a PR requested changes
PR requested changes
2022-05-27 12:21:38 -05:00
Ankit Saini
f5dfefd9c7 Fix detectRootFiles not working in browser 2022-05-27 11:43:07 +05:30
Erik Mendoza
6223594703 Adding components generation 2022-05-24 17:11:13 -05:00
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