Commit Graph

56 Commits

Author SHA1 Message Date
Jibin Mathews
4cc64094f3 Safe handling decodeURIComponent 2020-03-03 20:09:28 +05:30
umeshp7
fd6cea9bef Merge develop into feature/support_for_multifiles 2020-02-17 12:02:51 +05:30
shreys7
619fc63aba Fix variable name to log correct warning when schema faker throws an exception 2020-02-15 01:58:41 +05:30
umeshp7
ad36fca135 Merge develop into feature/support-for-multifiles 2020-02-05 12:51:24 +05:30
shreys7
0a66b5f701 Merge branch 'develop' into feature/required-in-parameter-description 2020-02-05 11:22:28 +05:30
shreys7
3621767896 Merge branch 'develop' into feature/cache-fake-schema 2020-01-31 12:50:04 +05:30
shreys7
cc74ce0f14 Merge branch 'develop' into feature/required-in-parameter-description 2020-01-28 15:43:39 +05:30
Shrey Shah
c896af177e Merge pull request #156 from postmanlabs/feature/bugfix-empty-examples
Fix for empty examples.
2020-01-28 13:54:18 +05:30
shreys7
3063abee4c Move description extraction logic to getParameterDescription function 2020-01-27 18:58:22 +05:30
shreys7
68e8419a10 Add sha1 hasing of schemaFakerCache keys and update the corresponding tests 2020-01-27 12:08:31 +05:30
umeshp7
a2c665c95c Reusing parsing logic for oas 2020-01-24 14:51:45 +05:30
shreys7
c6008d523e Revert enum message changes to be displayed to the user 2020-01-22 14:49:20 +05:30
shreys7
4516c0adc8 Add schemaResolutionCache logic for validator functions 2020-01-21 13:41:33 +05:30
umeshp7
bc6a4c9573 Remove console.log from schemaUtils 2020-01-16 15:43:12 +05:30
umeshp7
dde6bdd61a Fix for empty examples. 2020-01-16 15:37:32 +05:30
umeshp7
cdee72ed47 Fix for incorrect use of $ref variable 2020-01-16 13:32:26 +05:30
Abhijit Kane
c7c06f4d53 Safe check for parameters prop for invalid pathItem object 2020-01-13 11:33:47 +05:30
shreys7
88989dcc67 Merge branch 'develop' into feature/cache-fake-schema 2020-01-10 20:11:09 +05:30
shreys7
780fb881c6 Fix key formation logic for schemaFakerCache for resolveTo parameter set to example 2020-01-10 20:00:28 +05:30
Abhijit Kane
341b682d6b Prevent invalid schema.path entries from throwing errors 2020-01-10 10:23:58 +05:30
Abhijit Kane
da12c4e7e2 Prevent unknown schema types from throwing errors 2020-01-10 10:20:55 +05:30
shreys7
261c7d8fea Fix faked schema caching bug, now stores different faked schema according to resolveTo parameter 2020-01-09 23:16:19 +05:30
shreys7
0d77d119e4 Refactor schemaUtils to pass schemaCache to functions which call schemaFaker function 2020-01-09 17:37:19 +05:30
umeshp7
3a89a0b02c Merge branch 'develop' into feature/support_for_multifiles 2020-01-07 14:36:21 +05:30
Abhijit Kane
5ee68a6779 Mismatch reason copy updates 2020-01-06 11:33:54 +05:30
Abhijit Kane
e261caab45 Updated copy for mismatch reasons 2020-01-03 22:23:34 +05:30
Abhijit Kane
b87a28e951 Local scope for mismatch aggregator - prevents duplicate mismatches 2020-01-03 19:35:20 +05:30
Abhijit Kane
84284a7a82 Validation bugfixes 2020-01-03 15:10:01 +05:30
Abhijit Kane
0f4da23e83 Correct validation against request/response bodies 2020-01-03 15:08:16 +05:30
Abhijit Kane
f1a8158bb7 Converting pathVariable descriptions to string when an object is generated 2020-01-02 19:33:45 +05:30
Abhijit Kane
4f2347154b Handling parameters with a missing schema property 2020-01-02 16:22:40 +05:30
Abhijit Kane
a2bec105a9 Consistent response formats, more resilient against invalid schemas 2020-01-01 19:50:50 +05:30
Abhijit Kane
9a4b38d72d Exposing option to hide MISSING_IN_SCHEMA mismatches by default 2020-01-01 19:49:30 +05:30
Jibin
f155d0ae9a Fix variable scoping issues 2020-01-01 12:36:22 +05:30
shreys7
769d834a17 Correct typos for required text change 2019-12-31 18:24:34 +05:30
shreys7
6cc40e31e8 Fix schemaUtils tests description generations 2019-12-31 17:09:58 +05:30
shreys7
f71c355f55 Prepend "(Required)" text before param description where input spec contains required property set to true 2019-12-31 17:00:14 +05:30
Abhijit Kane
e4ab9c9e33 Minor fixes, empty query params ignored, matched prop also takes response mismatches into account 2019-12-30 19:41:19 +05:30
Abhijit Kane
7fbcaee9e3 Returning only best matches, minor fixes 2019-12-30 19:20:07 +05:30
Abhijit Kane
159ed9d8f9 Consistent response format whether or not matches are found 2019-12-30 19:18:54 +05:30
Abhijit Kane
0010b58d07 Changing process.nextTick to setTimeout for use in browser environments 2019-12-30 19:16:14 +05:30
Abhijit Kane
9bf96df0b2 Exposing option to ignore certain request/response props during validation 2019-12-30 19:13:45 +05:30
Abhijit Kane
08833e69d2 Expose option to shorten validation error messages
Helpful for request/response body
2019-12-30 19:11:55 +05:30
Abhijit Kane
2407e2b079 Merge pull request #142 from jazzyarchitects/feature/fix-schema-components
Adding safe checks for schema component references and invalid var re…
2019-12-21 23:39:13 +05:30
Abhijit Kane
b5a2dae49a Changing property name from REQUEST_BODY to BODY for consistency 2019-12-21 23:34:41 +05:30
Abhijit Kane
f45574cd12 Typo fixes, returning mismatches for query params too 2019-12-21 13:23:01 +05:30
Jibin
6eb8d23090 Adding safe checks for schema component references and invalid var reference 2019-12-21 08:18:47 +05:30
Abhijit Kane
cfe1000428 Resolving refs while comparing request bodies during schema validation 2019-12-20 20:02:02 +05:30
Abhijit Kane
7cc2d3fc54 Merge branch 'develop' into feature/new-api-and-validator 2019-12-20 16:38:06 +05:30
Abhijit Kane
22bd455a0f Fixing undefined error for requests without e/p matches, treat first segment of path as url if not preceeded by / 2019-12-20 16:21:00 +05:30