Commit Graph

281 Commits

Author SHA1 Message Date
Erik Mendoza
0aaa953e35 Adding descriptions as fallback in webhooks name, Avoid webhooks folder creation when there are not any webhook in the file and includeWebhooks is true, ignoring local and global servers in webhooks 2022-02-10 11:33:07 -06:00
umeshp7
d8c16ea74a Revert webhooks related changes for validation 2022-02-09 18:22:43 +05:30
Luis Tejeda
f5f54e8af1 Merge branch 'removeAjv4UseAjv6' into feature/sync-develop-and-split-develop 2022-02-08 15:30:34 -06:00
umeshp7
3368be1528 Merge branch 'develop' into feature/sync-develop-and-split-develop 2022-02-08 20:25:03 +05:30
Luis Tejeda
760bcfdebe change ajv draft 4 to ajv 6 and validate using schema for 04
change ajv draft 4 to ajv 6 and validate using schema for 04
2022-02-04 12:45:52 -06:00
Luis Tejeda
e2d324aa4a support for defined schema dialect property on validate transaction 2022-02-03 12:24:50 -06:00
Vishal Shingala
d0ebb83631 To not add accept if already present in request 2022-02-01 12:46:00 +05:30
Vishal Shingala
dd6692e6b3 Merge branch 'develop' of github.com:postmanlabs/openapi-to-postman into feature/support-accept-header 2022-02-01 12:29:50 +05:30
Luis Tejeda
663321485b Separate validation layers
Separate validation layers
2022-01-31 15:32:47 -06:00
Vishal Shingala
afa0631d4b Added support for Accept header in conversion 2022-01-31 15:25:44 +05:30
Vishal Shingala
13beeefb50 Merge pull request #455 from postmanlabs/feature/allow-inline-url-pathvar-matching
Fixed issue where for certain collection requests validateTransactions() provided missing path varaible in request even though it was present.
2022-01-31 14:13:13 +05:30
Vishal Shingala
f06f0f26e1 Merge pull request #433 from postmanlabs/feature/fix-undefined-typeerror
Fixed issue where we threw TypeError for undefined parameters.
2022-01-31 11:44:09 +05:30
Vishal Shingala
18153fb847 Fixed issue where for certain collection requests validateTransactions() provided missing path varaible in request even though it was present 2022-01-31 02:29:21 +05:30
Luis Tejeda
dd3b77923a Update schemaUtils.js
added clean web hook name
2022-01-27 15:55:56 -06:00
Luis Tejeda
7bf1218ee2 Merge branch 'feature/AddingWebhooksToConvertion' into feat/validateTransactionWH 2022-01-27 15:45:20 -06:00
Luis Tejeda
71bafccee2 Update schemaUtils.js
handle diferent name of variables than baseUrl for webhooks
2022-01-27 15:44:37 -06:00
Erik Mendoza
dc373c63a0 Fix includeWebhooks option description, adding fallback values 2022-01-27 14:43:33 -06:00
Luis Tejeda
384c23f01c webhooks scenarios 2022-01-27 12:33:42 -06:00
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
Luis Tejeda
68bb3f7c4f refactoring 2022-01-24 16:51:21 -06:00
Luis Tejeda
bfaf814518 resolve matchingrequest when is a webhook 2022-01-24 16:39:50 -06:00
Vishal Shingala
3d057538bf Merge pull request #450 from postmanlabs/feature/fix-additionalProperties-issues
Fixed issue where $ref in additionalProperties created issue with validation.
2022-01-24 11:31:55 +05:30
Vishal Shingala
b0b5b36cdc Fixed typo in comment 2022-01-20 13:59:02 +05:30
Vishal Shingala
776544a2c9 Disabled body proning for requests with method like GET, HEAD etc. 2022-01-20 12:47:03 +05:30
Vishal Shingala
989cea9ce6 Fixed issue where content-type with wild characters resulted in mismacthes for valid collection headrs 2022-01-19 12:53:15 +05:30
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
Vishal Shingala
f46232161d Fixed issue where we threw TypeError for undefined parameters 2021-12-08 00:24:56 +05:30
Luis Tejeda
d6fa8832eb Added test for 31x
Added test for 31x
2021-11-26 14:42:46 -06:00
Luis Tejeda
0be5fb9a75 Update schemaUtils.js
fix failing previous scenario
2021-11-26 14:42:37 -06:00
Luis Tejeda
c8cdf86563 Decouple validation
Decouple validation
2021-11-26 14:37:28 -06:00
Carlos_Veloz
50de5289b1 adding ci 2021-11-26 13:38:24 -06:00
Vishal Shingala
8da94cef0c Addressed comments 2021-11-25 21:59:54 +05:30
Vishal Shingala
0f9055a6b0 Fixed issue where large request name caused validation issues 2021-11-25 12:26:46 +05:30
Ankit Saini
6fff04a294 Merge pull request #420 from postmanlabs/feature/composite-schema-validation
Added support for anyOf and oneOf keywords in validation flow.
2021-11-02 14:32:49 +05:30
Vishal Shingala
522e734989 Fixed issue where validation against collection always provides mismatch if requestBody has $ref 2021-10-25 12:36:08 +05:30
Vishal Shingala
65d7e9af23 Added support for anyOf and oneOf keywords in validation flow 2021-10-21 00:00:48 +05:30
Vishal Shingala
6139a98bb0 Fixed issue where conversion failed with type error if header example was null 2021-10-12 16:40:36 +05:30
Vishal Shingala
79fb1aa2ad Merge pull request #413 from postmanlabs/issue/379
Set param type in request to `file` if schema type is `string` and format is `binary`
2021-10-11 12:38:28 +05:30
Vishal Shingala
1a9f554c8f Merge pull request #414 from postmanlabs/feature/fix-example-request-body-content-type
Fix issue where json and xml lanugages were not detected from the example request body content type
2021-10-11 12:35:41 +05:30
diyaeninan
00486da3d9 Remove fallback assignment to text language 2021-10-08 12:04:52 +05:30
Ankit Saini
3c439b6d6d Merge pull request #415 from postmanlabs/feature/fix-absent-pathvar-validation
Fixed issue where validation was giving INVALID_TYPE instead of MISSING_IN_REQUEST if path variable is not present in transaction.
2021-10-06 11:15:46 +05:30
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
Vishal Shingala
e4b09dfd82 Merge pull request #412 from postmanlabs/issue/382
Handle the case when request body is of type `string` and format `binary`
2021-10-05 11:39:11 +05:30
diyaeninan
f1ea5ece79 Fix issue where json and xml lanugage was not detected from the example request body content type on conversion 2021-10-04 20:07:15 +05:30
Ankit Saini
2f7e214037 Check for type and format in the original param instead of checking for value after processing 2021-10-04 19:31:55 +05:30
Ankit Saini
0cbbe028cd Make sure that request body has 'schema' property before checking for type and format 2021-10-04 13:42:17 +05:30
Ankit Saini
98f985612b Set param type in request to 'file' if schema type is 'string' and format is 'binary' 2021-10-04 13:00:58 +05:30
Ankit Saini
1d52cfdca8 Fix failing test 2021-10-03 17:35:13 +05:30