Commit Graph

54 Commits

Author SHA1 Message Date
Erik Mendoza
ec803ba0e1 Support root components referenced from external files 2022-07-04 20:12:52 -05:00
Luis Tejeda
ef377862ff Merge branch 'split/develop/multiFileSupport' into feature/swagger20BundleSupport 2022-07-04 15:20:41 -05:00
Luis Tejeda
5df08d520f Merge branch 'split/develop/multiFileSupport' into feat/addInlineComponentsToRefMap 2022-07-04 13:34:42 -05:00
Luis Tejeda
8e0ead9562 add inline objects to ref map 2022-07-04 13:34:12 -05:00
Luis Tejeda
15158bb27f Read correctly the version in multifile apis
Read correctly the version in multifile apis
2022-07-01 16:06:47 -05:00
Luis Tejeda
4e0a697f43 rem ref comp version solving 2022-07-01 13:58:14 -05:00
Erik Mendoza
9cfb88c36c Adding fix to issue 14
- Adding support to values as a nested example
- Merging the root components with the referenced ones instead of replace
2022-06-30 19:49:30 -05:00
Erik Mendoza
a39cc2c2cb Fixing issue 14
- Adding value key as an example variant
- Avoid an inline reference to ignore siblings if they exist
2022-06-29 20:07:18 -05:00
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
Erik Mendoza
272db64377 Fix components keys injection in setValueInComponents method 2022-06-23 13:03:56 -05:00
Luis Tejeda
920ea81dcc homologate from multifile 2022-06-23 11:26:03 -05:00
Vishal Shingala
64f06ab2f6 Merge branch 'split/develop/multiFileSupport' of github.com:postmanlabs/openapi-to-postman into feature/add-reference-map-bundle 2022-06-23 19:28:02 +05:30
Vishal Shingala
65fbc0f730 Added support for getting reference map via option 2022-06-23 19:26:44 +05:30
Erik Mendoza
b34397a1d4 Handling not provided node when is referenced from local components 2022-06-22 19:13:42 -05:00
Luis Tejeda
eed8a2c5d3 ignore invalid nodes
ignore invalid nodes
2022-06-22 17:49:31 -05:00
Luis Tejeda
4dab3e028d Merge branch 'split/develop/multiFileSupport' into feat/avoidReadingFromFS 2022-06-22 13:47:47 -05:00
Luis Tejeda
873014849c merge multifile support and fix tests 2022-06-22 12:48:17 -05:00
Luis Tejeda
eebb2f35f8 merge
merge
2022-06-22 12:38:01 -05:00
Luis Tejeda
8c2af3648f Merge branch 'feature/swagger20BundleSupport' into feat/fixLongPaths20 2022-06-22 12:20:30 -05:00
Luis Tejeda
b4910b4cd4 Update bundle.js
added doc for param
2022-06-22 11:56:10 -05:00
Erik Mendoza
e5a46263c5 Adding support to handle collisions
- Handle external collisions. When the naming strategy creates a collision
- Handle local collisions. When the bundle teies to create a key that already exists in the local components object definitions

Removing some outdated tests from getKeyInComponents
2022-06-22 11:39:20 -05:00
Luis Tejeda
2faa3fde09 avoid reading from fs 2022-06-22 11:27:14 -05:00
Erik Mendoza
9441394461 Handling collisions
- Handle external collisions generated from the naming strategy
- Handle local collisions generated by a same named component in local components objects and a new key generated from bundle
2022-06-21 20:23:58 -05:00
Luis Tejeda
ad1baee51c fix long paths
fix long paths
2022-06-21 16:47:41 -05:00
Luis Tejeda
1293d96974 Fix long paths
Remove common subpaths in references
2022-06-21 16:27:55 -05:00
Ankit Saini
1a2f9c97ca Add a reference map to bundle output 2022-06-17 10:29:34 +05:30
Erik Mendoza
9500ea6bfa Refactoring bundle rules resolving 2.0, 3.0 and 3.1
- Moving data for each version to different files
- Generalizing rule resolvers for all versions
- Replacing each version getKeyInComponents to use the generalized one
- Removing all componentsParentMatcher files
- Updating new constant sources in bundle.js
2022-06-16 10:24:16 -05:00
Erik Mendoza
183bc1eb27 Refactor rule resolver 3.0 and 3.1
- Moving each bundling version rules to new files
- Removing componentsParentMatcher files
- Replacing the getKeyInComponents for each version by a generalized one
- Adding a method to get the version bundling data by version
- Replacing the new sources in files
2022-06-16 00:41:49 -05:00
Luis Tejeda
6e192043d3 Refactoring
refactoring
2022-06-15 16:41:43 -05:00
Luis Tejeda
9a555ca003 Add test 3.1
add test for webhooks and path item in components
2022-06-14 13:29:51 -05:00
Luis Tejeda
6ade03062a Add reusable referenced path item object
Add reusable referenced path item object
2022-06-14 12:25:48 -05:00
Erik Mendoza
144138c63d Applying naming changes to expected files
- Fix expected files
- Fix jsonPointer tests
- Adding a missing test in bundle
- Adding changes related with the naming
2022-06-10 20:44:24 -05:00
Erik Mendoza
2cc75ebd26 Changing the way the object keys are generated 2022-06-10 17:30:17 -05:00
Erik Mendoza
81cb60a452 Merge branch 'split/develop/multiFileSupport' into feature/swagger20BundleSupport 2022-06-09 18:39:20 -05:00
Luis Tejeda
642de55832 Merge branch 'split/develop/multiFileSupport' into fix/formatForEachroot 2022-06-09 11:50:38 -05:00
Luis Tejeda
775682b7c3 Take format from root
take the format of each root when the option for the process is not present
2022-06-09 11:46:23 -05:00
Erik Mendoza
446e8651e5 Resolving properties as a reusable component
Resolve each property as a different schema instead of inline
2022-06-08 18:15:03 -05:00
Erik Mendoza
c82d50ed8d Adding safe parsing to the node's content parsing 2022-06-02 14:29:03 -05:00
Luis Tejeda
d2e2be3c06 add example of using examples in swagger 2.0
add example of using examples in swagger 2.0
2022-06-02 13:10:34 -05:00
Luis Tejeda
21190fa50b Merge remote-tracking branch 'origin/feature/swagger20BundleSupport' into test/entitiesRootRef20 2022-06-01 17:31:48 -05:00
Erik Mendoza
e01f02afb8 Adding swagger 2.0 similar scenarios to 3.0 2022-06-01 17:16:04 -05:00
Luis Tejeda
d289dd0fdc Fix defintions replacing instead of merging
Fix defintions replacing instead of merging
2022-06-01 14:09:35 -05:00
Erik Mendoza
caf725e997 Adding new tests for 2.0 version 2022-06-01 12:17:53 -05:00
Luis Tejeda
fc0753c854 Add scenario referenced path points to local schema
Add scenario referenced path points to local schema
2022-05-31 13:17:00 -05:00
Luis Tejeda
e2ed7f09f3 Update bundle.js
When absolute path do not calculate path with join
2022-05-30 13:13:52 -05:00
Erik Mendoza
088edba128 Refactor, cleaning and adding new test scenarios
- adding support for not provided nodes in input.
- adding support to bringing local dependencies in references from external references content
- bundle getReferences method tests
- Adding a new type of error to catch parsing errors and handle
2022-05-29 00:03:36 -05:00
Luis Tejeda
e2035a5f19 Fix PR request changes
Fix PR request changes
2022-05-27 16:09:23 -05:00
Erik Mendoza
e701cf356e removing unused method in bundle 2022-05-27 11:15:23 -05:00
Erik Mendoza
b4c890aa9f solvin conflicts in tests 2022-05-27 03:45:08 -05:00