Erik Mendoza
5b10622deb
Merge branch 'split/develop/multiFileSupport' into feature/swagger20BundleSupport
2022-07-11 14:25:25 -05:00
Luis Tejeda
f1ae42f46b
Add ref and property for circular ref
...
Add ref and property for circular ref
2022-07-11 12:20:00 -05:00
Luis Tejeda
3737e9acba
remove unnecesary code
2022-07-08 17:38:04 -05:00
Luis Tejeda
8e3293717d
Fix circular references
...
fix circular references
2022-07-08 17:37:16 -05:00
Luis Tejeda
83e6819c66
Fix circular references in bundle
...
Fix circular references in bundle
2022-07-08 17:26:27 -05:00
Erik Mendoza
f0a7ad3daf
Fixing value key to resolve inline
2022-07-06 15:53:07 -05:00
Erik Mendoza
4bf664e80a
Fix value resolution.
...
- When value is not below the properties key, it will be resolved inline
- Avoiding to overwrite the already created references when they are called again from a different node
2022-07-06 15:24:29 -05:00
Luis Tejeda
9189cc8ae5
Fix references map
2022-07-06 12:14:02 -05:00
Luis Tejeda
9d8ff08954
Fix error in ref map with inline
2022-07-06 11:45:14 -05:00
Erik Mendoza
ec803ba0e1
Support root components referenced from external files
2022-07-04 20:12:52 -05:00
Erik Mendoza
7e9b73d12b
Merge branch 'split/develop/multiFileSupport' into fix/componentsObjectReferenced
2022-07-04 19:10:19 -05:00
Erik Mendoza
60320a9b37
support referenced components in root
2022-07-04 19:05:25 -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