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
Sergey Shandar
42517d127d
Fix for #381 and for missing source in `RESPONSE_STATUS_CODE_NOT_IN_EXAMPLE` error
...
* Fix for #379
* changelog
* changelog
* Update specTransformer.ts
* Update specTransformer.ts
2019-01-29 10:32:11 -08:00
Sergey Shandar
738fa8fc90
Updage z-schema ( #380 )
...
* Handle `text-matches` in suppression.
* openapi-markdown 0.7.3
* update z-schema
* changelog
* Issue # 381
* Issue # 381
2019-01-25 11:03:49 -08:00
Sergey Shandar
ca3d3c88de
Handle `text-matches` in suppression. ( #378 )
...
* Handle `text-matches` in suppression.
* openapi-markdown 0.7.3
2019-01-22 11:46:45 -08:00
Sergey Shandar
3b13b883d5
Update JSON types. ( #376 )
2019-01-15 16:11:52 -08:00
Vlad Barosan
c2c858da20
Simplify error property names ( #375 )
2019-01-15 10:16:13 -08:00
Sergey Shandar
cf41d9cb49
OAV shouldn't fail on examples which contain "$schema" properties. ( #374 )
...
* examples as functions
* revert minor changes.
* address comments.
2019-01-14 16:44:53 -08:00
Sergey Shandar
8e839c6c60
No symbol logging ( #372 )
...
* No symbol logging
* changelog
* revert log commenting.
2019-01-09 14:40:48 -08:00
Sergey Shandar
598dfa42ab
Remove ts-node ( #371 )
2019-01-08 15:03:51 -08:00
Veronica Giaudrone
bf8fbfaf09
Update export ( #369 )
...
* Adding reference documentation for oav model validation
* updating to export NodeError
* updating oav version
2018-12-11 11:14:55 -08:00
Sergey Shandar
7d0267a651
no default response for non errors ( #367 )
...
* Remove generated CloudError
* resolve responses
* unit test
* tests should also check for error code.
* update yasway
* tests for live validation default status code
* yasway 1.4.0
* changelog
2018-12-07 15:04:17 -08:00
billytrend
76b57f4b4a
Adds retry to github request ( #363 )
...
* Adds retry to github request
* Changes to node-fetch
* Makes config explicit
* Adds call
* Bumps package
* Adds vfs to parsing
* Removed dependencies
* Removes promise syntax
* Fixes whitespace
* minor comments.
* Bumps version
* Fixes date format 🇬🇧
2018-12-07 12:55:34 -08:00
Sergey Shandar
07ef51260d
Remove generated CloudError ( #366 )
...
* Remove generated CloudError
* resolve responses
* unit test
* tests should also check for error code.
* changelog
* 0.10.0, remove package-lock
* shouldModelImplicitDefaultResponse is removed.
2018-12-06 16:11:21 -08:00
Veronica Giaudrone
def3719dee
Update documentation with missing error code ( #364 )
...
* Adding reference documentation for oav model validation
* adding doc for missing error code
2018-12-05 14:45:37 -08:00
Sergey Shandar
75decf2767
Properly handle JSON errors ( #362 )
...
* JSON error
* minor
* still need to throw
* prettyPrint for resolveSpec
* InternalError
2018-12-03 11:15:31 -08:00
Sergey Shandar
743ad2c948
update json parser ( #361 )
...
* Update JSON parser to handle UNICODE escape sequences.
* 0.9.6
2018-11-29 14:08:54 -08:00
Sergey Shandar
357bdb0def
Suppress errors in suppression readme ( #360 )
...
* improve error message
* changelog
* something strange
* fix jp bug
* 0.9.5
* change-log
* catch jsonpath exceptions.
* changelog.
* Test
2018-11-28 16:37:48 -08:00
Sergey Shandar
ea6083863d
Improve error message ( #359 )
...
* improve error message
* changelog
* internal error
2018-11-28 11:43:11 -08:00