Nick Zhu
d0333f9121
Update changelog and package version
2019-11-04 14:13:55 +08:00
Nick Zhu
47e17e0e35
Git apply patch manually for test snapshot
2019-11-01 17:36:42 +08:00
Nick Zhu
e100bb769c
Merge remote-tracking branch 'origin/master' into nickzhu
2019-11-01 16:42:22 +08:00
Nick Zhu
7236001d88
Delete test json file
2019-11-01 12:55:21 +08:00
Nick Zhu
535ca82412
Update package version of sway
2019-11-01 12:52:50 +08:00
Nick Zhu
31d8be288f
Check if x-ms-mutability propety is write only in the response
2019-10-29 16:53:51 +08:00
Nick Zhu
6991bed01e
Add payload and test files
2019-10-29 12:22:57 +08:00
Nick Zhu
a9bb3b314e
Add writeonly property not allowed response error
2019-10-29 11:03:48 +08:00
Ray Chen
e582db9b31
Extends logging and metrics. ( #458 )
...
* Extends logging and metrics.
Add corrleationId;
Log execution time for each operation;
Log splited request info for each call.
* Bump version and minor change on feedback.
2019-10-22 22:55:50 +08:00
Ray Chen
669febd7df
Improve logging for livevalidator ( #457 )
...
* Improve logging for livevalidator
Added an optional logging callback to consume by livevalidtor to dump
logs to external caller.
2019-10-14 13:28:14 +08:00
Renhe Li
a4b3f87b39
Apply the latest version of yasway and add the error code of SECRET_PROPERTY ( #456 )
2019-10-12 16:41:58 +08:00
Renhe Li
26cb277199
add unresolvable_reference into error codes ( #455 )
...
* add unresolvable_reference into error codes
* Update the version and cleanup employee.json file
2019-09-30 10:47:47 +08:00
Ray Chen
3b8eacdc91
Add prefix to log entry to disaply in github. ( #454 )
...
* Add prefix to log entry to disaply in github.
* Wrap message as well.
2019-09-18 15:44:28 +08:00
Ray Chen
6bf90059b9
Fixed internal errors when load local reference file ( #452 )
...
* Fixed two internal errors: issue#449 and issue#444.
* Also throw error when load an empty reference file.
* Upgrade yasway version to take path fix.
2019-09-05 10:38:24 +08:00
Ray Chen
3e29e1344a
Report exmaple position for request errors ( #445 )
...
* Report exmaple position for request errors
Issues#423
* Prevent duplicate loading example file.
* Add some await keyword.
* Fixed unit test.
2019-09-04 13:48:49 +08:00
Ray Chen
59090d8b81
Add package lock file. ( #451 )
...
* Add package lock file.
* Update changelog and bump package version.
2019-09-02 16:43:38 +08:00
Renhe Li
b25a7827cf
Update the load of suppression file for better error handling ( #448 )
...
* Update the load of suppression file for better error handling
* Update change log and change the package version
2019-08-12 16:55:14 +08:00
Amar Zavery
4123d46bee
fix validation for nullable array types and fix a discrepancy in specResolver ( #440 )
...
* fix validation for nullable array types and fix a discrepancy in specResolver
* update test snapshot
* apply patch
2019-07-30 15:17:13 -07:00
Ray Chen
bcb532dd5c
Report error if 'discriminator' is not required ( #439 )
...
* Report error if 'discriminator' is not required
Issue #386 OAV report error if the property for 'discriminator' is not a
requried property.
* Update error object.
* Add an unittest.
* Add suppression process for discriminator.
* Fix review comment and bump up package version.
2019-07-17 09:54:55 +08:00
Sergey Shandar
24cd33cc15
@types/jsonpath and typescript 3.5 ( #442 )
...
* @types/jsonpath and typescript 3.5
* no more internal errors?
* minor
2019-07-15 11:01:48 -07:00
Renhe Li
8a7bace89e
Update pathInPayLoad for MISSING_REQUIRED_PROPERTIES and OBJECT_ADDITONAL_PROPERTIES ( #438 )
...
* Path in payload for MISSING_REQUIRED_PROPERTIES and for OBJECT_ADDITIONAL_PROPERTIES should point to the property.
* Update the handling for JsonPathInPayload
* Put the missing/additional property handling into setPathProperties
* revert the change in LiveValidator.ts
* Modify the snapshot of the test and change the version to 0.18.7
* update the minor version instead of patch version
2019-07-12 11:21:34 +08:00
Ray Chen
6b4c9a849e
Added one more rule for response validation in model validation. ( #436 )
...
* Added one more rule for reponse validation.
Fail the validation when there's schema defined for response body in spec but the example
response doesn't provide the body in response.
* Fix the exmaples for unit tests.
* Added two more unit tests.
Coverage for the new added rules about body/schema validation in
response.
* Apply snapshot patch.
* Bump package version and update changeLog file.
* Apply snapshot patch.
* Update version number in changeLog.
* Apply snapshots patch again.
* Update per the review comment.
* Update test snapshot.
2019-07-08 16:02:37 -07:00
billytrend
02235674f3
Add instructions for regression fixes ( #430 )
...
* Add instructions for regression fixes
* Update README.md
2019-06-13 13:43:33 -07:00
Eric Williams
317296ba10
Updating regression test snapshots ( #429 )
2019-06-12 16:11:39 -07:00
Eric Williams
d54eaf3cfd
Adding support for JSON path & schema path in errors ( #428 )
...
* JSON path support
* Support for schemaPath in errors
2019-06-12 14:19:59 -07:00
Timothee Guerin
b89ec0b0e6
Fix: Better error return when cannot find a reference ( #427 )
2019-05-30 14:37:51 -07:00
Amar Zavery
9b3f0009ec
update cache initialization to Promise.all and update yuml2svg package version and add test for readonly properties ( #424 )
...
* update cache initialization to Promise.all and update yuml2svg package version
* nit fix and test artifact update
* Adding tests for validating readOnly properties
* Fix type issue
* Fix type
* Add amar snapshot changes
* address code review feedback
* update changelog and bump min version of yasway to 1.7.3
2019-05-29 15:37:21 -07:00
billytrend
2c03e13db1
Add regression suites for validateExamples ( #403 )
2019-05-08 11:39:02 -07:00
Vlad Barosan
74a81b3b2c
Use node env for jest ( #422 )
...
* Use node env for jest
* Fix tslint
2019-04-25 12:19:46 -07:00
Vlad Barosan
0035655d53
Validate request body when object ( #415 )
2019-04-10 21:22:59 -07:00
Vlad Barosan
43fd5dff3c
Report isSuccessful as undefined when there are runtime errors ( #414 )
2019-04-08 15:41:00 -07:00
Vlad Barosan
0b4dda3a6c
Pass error filter ( #412 )
...
* Update typescript version to 3.4.1 and fix compiler errors
* update sway deps and pass error filter
* Update openapi-markdown
* Update changelog
* Update deps
* use chaining
2019-04-05 16:06:04 -07:00
Sergey Shandar
074347d9f1
fix exit code ( #410 )
...
* fix exit code
* changelog
* minor
* 0.16.1
* Update package.json
* result.length
2019-04-05 14:17:28 -07:00
Eric Williams
28a6b1a38d
Adding missing exports to index.ts ( #411 )
...
* Adding missing exports to index.ts
* Fixes per feedback
* Fixes per feedback
2019-04-05 13:41:49 -07:00
Vlad Barosan
5e60e761cb
Report real errors for polymporphic models ( #409 )
2019-04-01 17:30:04 -07:00
Vlad Barosan
ff4748b834
Improve inner error type ( #408 )
...
* Add discriminator test
* Improve inner error type
* Remove example files as they are not needed
* Dont use empty arrays for optional params
2019-04-01 10:59:25 -07:00
Vlad Barosan
7c49309fdc
Allow to specify specific validation errors to include in results ( #406 )
...
* Allow to specify specific validation errors to include in results
* Address feedback
* remove duplication
2019-03-29 11:12:10 -07:00
Vlad Barosan
44a19e34a8
Seperate request response ( #405 )
...
* Refactor and seperate validate method
* re-use seperate validations
* refactoring
* use globby instead of glob sync
* mark that is a breaking change
* new return types
* Add snapshot tests
* Add snapshot tests for live validation
* Add option for relative source location url
* Add severity
* Don't expose get operations externally anymore
2019-03-28 11:47:48 -07:00
Vlad Barosan
6a1b7816af
Refactor relative references ( #404 )
...
* Refactor resolve relative references and remove unecessary parsing
* Remove unused references from x-ms-examples
* Update changelog and package.json
2019-03-20 15:43:29 -07:00
billytrend
a26e0f3686
Change test runner to jest ( #401 )
...
* Change test runner to jest
* Fix sample
* Revert typescript
* Change output file
* Bump version
2019-03-20 17:46:05 +00:00
Vlad Barosan
8cdb147c43
Don't resolve xms examples for live validation ( #402 )
...
* Don't resolve xms examples for live validation
* Update version and changelog
* Update test string
* keep for semantic
2019-03-19 17:14:21 -07:00
Vlad Barosan
21d90189f5
Enforce linting and styling ( #399 )
...
* Auto fixes for oav lintining issues
* Extra fixes
* Update changelog
* Increment package version
* Extra auto fix for line lengths
2019-03-08 15:38:37 -08:00
Sergey Shandar
a493f1b1ec
hot fix ( #400 )
...
* INTERNAL_ERROR
* 0.14.4
2019-03-08 13:28:15 -08:00
Sergey Shandar
052297ec6e
ICE fix. ( #398 )
2019-03-07 16:42:07 -08:00
Vlad Barosan
69ea6923c3
Use one cache validator per SpecValidator ( #396 )
2019-03-06 18:17:16 -08:00
Vlad Barosan
3af1bb91af
Add live validator init time docs cache ( #394 )
2019-03-06 16:39:39 -08:00
Vlad Barosan
15e1157efd
Remove global cache ( #393 )
...
* Remove global cache
* update/remove unusued dependencies and increment package version
* Remove unusued imports
* Fix lint errors
2019-03-06 10:05:37 -08:00
Sergey Shandar
67fb79edbc
fix type for polymorphic objects ( #389 )
...
* fix for polymorphic objects
* more comments.
* unit test
* test fro modelAsString
* discriminator should be required property.
* address comments.
2019-02-14 13:54:39 -08:00
Sergey Shandar
04411ace7f
Fix x-ms-enum as discriminator ( #387 )
...
* Fix x-ms-enum as discriminator
* changelog
* source-map update
* address comments.
* copyright
* jsonRefs comment
2019-02-06 16:14:31 -08:00
Sergey Shandar
41bd80095d
More errors with position and URL ( #383 )
...
* Fix for #379
* changelog
* changelog
* Provide URL and position for more errors.
* address comments.
2019-01-30 16:49:32 -08:00