Ankit Saini
17622a4104
Merge branch 'split/develop/multiFileSupport' of github.com:postmanlabs/openapi-to-postman into feature/add-reference-map-bundle
2022-06-22 10:47:45 +05:30
Luis Tejeda
127964d4b9
change json output formt
2022-06-17 10:23:42 -05:00
Ankit Saini
1a2f9c97ca
Add a reference map to bundle output
2022-06-17 10:29:34 +05:30
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
2c0d63ff29
Validate the version input
...
Validate the version input
2022-06-15 17:01:33 -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
Carlos-Veloz
43c986d99a
Merge pull request #544 from postmanlabs/fix/referencedComponents
...
Fix/referenced components
2022-06-13 17:31:50 -05:00
Erik Mendoza
f74efe1dcd
moving the link scenario to the correct rule while resolving it
...
- fixing the expected file
- fixing the root file
2022-06-13 14:57:18 -05:00
Luis Tejeda
9078e2ad91
Add callback and security schemes support
...
Add callback and security schemes support
2022-06-13 12:35:59 -05:00
Luis Tejeda
c928780fef
Merge branch 'split/develop/multiFileSupport' into fix/referencedComponents
2022-06-13 09:53:40 -05:00
Ankit Saini
09a2f49084
Fix lint error
2022-06-13 13:02:21 +05:30
Ankit Saini
8d465a33a6
Don't throw error if invalid file given as input for detectRootFiles
2022-06-11 08:44:26 +05:30
Erik Mendoza
2cc75ebd26
Changing the way the object keys are generated
2022-06-10 17:30:17 -05:00
Luis Tejeda
812565e7e2
Added support for components
...
Added support for components
2022-06-10 17:28:49 -05:00
Luis Tejeda
9896b24d81
add correct to root name in result
...
add correct to root name in result
2022-06-09 18:25:23 -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
e2a7b3fb05
removed commented line'
2022-06-09 11:54:21 -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
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
4ccfa86271
Throw errors instead of returning reason
...
Throw errors instead of returning reason and throw errors if the entry has no root files
2022-06-06 15:58:09 -05:00
Luis Tejeda
2e73ed22bb
Fix input validation in multi file APIs
2022-06-06 11:23:39 -05:00
Erik Mendoza
243c9a1dba
Merge pull request #526 from postmanlabs/feat/entitiesRootRef
...
Feat/entities root ref
2022-06-01 12:12:08 -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
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
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
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
Erik Mendoza
83728a67d3
solving node 8 error
2022-05-27 11:26:00 -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
Erik Mendoza
74ca402524
Adding support to test scenarios
...
- same reference value from different sources
- nested references from components in root
- multiple nested references from components in root
- reference with local path from root components
2022-05-27 02:39:58 -05:00
Ankit Saini
f5dfefd9c7
Fix detectRootFiles not working in browser
2022-05-27 11:43:07 +05:30
Erik Mendoza
0f8d118ed4
Adding bundleFormat support
2022-05-24 22:00:48 -05:00
Erik Mendoza
10524b0911
Adding tests to bundle items, adding support to parameters and schemas in composite components
2022-05-24 17:11:13 -05:00
Erik Mendoza
4aa298b399
Adding bundle files proces
2022-05-24 17:11:13 -05:00
Erik Mendoza
6223594703
Adding components generation
2022-05-24 17:11:13 -05:00
Luis Tejeda
d7cfba0b40
Update relatedEntities.js
...
Removed unnecessary comments
2022-05-24 17:11:13 -05:00
Luis Tejeda
6515609fb9
Add remote ref method and fix typo
2022-05-24 17:11:13 -05:00
Luis Tejeda
810693abc1
Add format to parse result
...
Add format to parse result
2022-05-24 17:11:13 -05:00
Luis Tejeda
789f2e3522
constants extraction
...
constants extraction
2022-05-24 17:11:13 -05:00
Luis Tejeda
1a208ab0ed
refactor
...
use only one getreferences method
2022-05-24 17:11:13 -05:00
Luis Tejeda
5a0784165f
parse functions
2022-05-24 17:11:13 -05:00
Luis Tejeda
90960b7510
Get related entities
...
from an OAS entity get the local $ref entities
2022-05-24 17:11:13 -05:00