Граф коммитов

332 Коммитов

Автор SHA1 Сообщение Дата
Sergey Shandar 4f1ddb3c45
Passing object information using title (#297)
* minor

* send error information using title

* update line and column

* Logging

* remove extra `errorsAddFileInfo`

* remove import
2018-08-19 11:30:54 -07:00
Sergey Shandar 9aee77ea67
File info in errors (#296)
* package update

* minor

* first transformation

* remove keys/entries

* clean-up

* update yasway

* changelog

* error processing experiment

* file info in errore

* 0.5.0
2018-08-17 15:32:19 -07:00
Sergey Shandar 23f0d59e00
Replacing transformation functions to work with source-map (#294)
* package update

* minor

* first transformation

* remove keys/entries

* clean-up

* update yasway

* changelog
2018-08-17 01:22:53 -07:00
Vlad Barosan 1f24493dc3
Add unique array errors (#293)
* Add unique array errors

* Lint fixes

* Add test for similar paths on serialized errors
2018-08-15 10:50:16 -07:00
Sergey Shandar bb66d2c638
Using a JSON parser with a source map (#292)
* responseReducer & scenarioReducer

* toModelErrors

* toModelErrors: map vs reduce

* Iterable

* less reduce functions

* simplified scenarioReducer

* reduce() => map()

* operationId & scenarios

* minor

* stringMap

* stringMap

* no `Unknown`

* remove unused methods

* source-map design review

* strict TypeScript

* remove some any types

* remove `any` type

* no any

* less any

* new JSON parser

* Using JSON parser with a source map

* minor

* minor

* US data style

* address comments

* address comments

* clean jsonParser
2018-08-13 12:16:26 -07:00
Vlad Barosan 875b75a0c0 Single discriminator error (#291)
* Single discriminator error

* Add badges to readme
2018-08-10 21:23:12 -07:00
Vlad Barosan d9297da9b0 Use json pointer for schema title (#290) 2018-08-10 16:57:28 -07:00
Vlad Barosan f1990b98b2 Add property name as schema title (#289) 2018-08-10 14:04:08 -07:00
Vlad Barosan fbefba5149
Insert title to schema (#287) 2018-08-08 15:51:46 -07:00
Sergey Shandar 8c40042c65
Replacing `reduce` error collections with lazy iterators. (#285)
* responseReducer & scenarioReducer

* toModelErrors

* toModelErrors: map vs reduce

* Iterable

* less reduce functions

* simplified scenarioReducer

* reduce() => map()

* operationId & scenarios

* minor

* 0.4.63

* test for getErrorFromModelValidation
2018-08-01 13:02:47 -07:00
Vlad Barosan 2e59377b8e
Fix security vulnerabilities (#281)
* Update dependencies to solve security vulnerabilities

* Add Prettier

* Update version and changelog
2018-07-25 17:55:59 -07:00
Sergey Shandar 0b6e835553
Export more types (#278)
* ValidationResult

* processValidationErrors

* BaseValidationError

* changelog
2018-07-20 10:35:59 -07:00
Sergey Shandar 7ac09ebe6b
yasway update (#277)
* yasway update

* no npm dependency

* changelog
2018-07-19 15:32:36 -07:00
Sergey Shandar 8e3eac69f5
Bug fix: `scenarios is undefined` when running AutoRest plugin (#276)
* reproduce "scenarios is undefined" error

* Bug fix: `scenarios is undefined` when running AutoRest plugin
2018-07-18 13:47:23 -07:00
Sergey Shandar d0f8fc0833
export types for different tools (#273)
* BaseValidationError

* 0.4.58

* severity

* ModelValidationError

* ValidationResultSource

* enum => union

* import export type

* revert changes in ValidationResultSource

* revert changes

* export getErrorsFromModelValidation

* processValidationErrors

* ValidationError

* errorConstants

* errorCodeToSeverity

* serializeErrors

* 0.4.58
2018-07-16 23:28:07 -07:00
Sergey Shandar 0fc3261523
Simplified errors (using `--pretty` option) (#272)
* Resolve nested Schema Objects

* npm run cli

* errors.

* Error serialization

* simplify initialization.

* minor

* types for validationError

* minor refactoring

* option 'pretty'

* No Node type.

* ported code from openapi-tools

* SemanticValidator and ModelValidator

* a lot

* a lot

* a lot

* better

* consoleLog = off when petty

* yaml

* output to error stream

* 0.57

* some colors

* with reset

* address comments
2018-07-16 13:34:18 -07:00
Sergey Shandar 5bfc9951a1
Error serializer. (#269)
* Resolve nested Schema Objects

* npm run cli

* errors.

* Error serialization

* simplify initialization.

* minor
2018-07-06 10:37:48 -07:00
Sergey Shandar bc0c5a3e8e
Remove `@types/winston` (#270)
* Remove @types/winston

* changelog

* package-lock.json

* Winston 3.0.0

* changelog.
2018-07-05 17:48:42 -07:00
Sergey Shandar 9fc199ef5c
Resolve nested Schema Objects (#268) 2018-06-29 15:30:59 -07:00
Vlad Barosan 3cd7940ae6
Do BOM stripping for remote URL's (#267) 2018-06-26 16:37:53 -07:00
Vlad Barosan d927497f19 Move types out of dev as they are required 2018-06-20 16:53:56 -07:00
Vlad Barosan 2e4a5ac0d5 Move to yasway 2018-06-20 16:44:53 -07:00
Sergey Shandar 9b527592e8
Replacing `oneOf` with `anyOf`. 2018-06-19 16:28:53 -07:00
Sergey Shandar 6691c43813
A reference on sway. 2018-06-18 14:07:39 -07:00
Sergey Shandar f8175e1677
types 2018-06-18 13:10:27 -07:00
Sergey Shandar 4a59b5cf92 Update package.json (#260) 2018-06-15 15:42:37 -07:00
Sergey Shandar 975629f94e
Update package.json 2018-06-15 09:07:16 -07:00
Sergey Shandar dfca964bdd Increment version # (#258) 2018-06-14 15:41:33 -07:00
Sergey Shandar 09d132ea09
More TypeScript 2018-06-08 16:35:55 -07:00
Sergey Shandar 57e1cd8ea6
only lib files. 2018-06-04 15:43:36 -07:00
Sergey Shandar caf75b671c
NYC configuration 2018-06-04 15:36:59 -07:00
Sergey Shandar 3dade46264
more tslinter 2018-06-04 13:13:32 -07:00
Sergey Shandar 39a5d1c123
run tslint always 2018-06-04 13:10:57 -07:00
Sergey Shandar 77d9bc2a07
tslinter 2018-06-04 06:16:47 -07:00
Sergey Shandar 04fef563b9
tslinter 2018-06-01 17:26:20 -07:00
Sergey Shandar 8d693b8e80
pluginHod.ts 2018-05-31 17:36:35 -07:00
Sergey Shandar 0f51930766
winston 2018-05-31 17:12:24 -07:00
Sergey Shandar 1933c70d9a
types/ 2018-05-31 16:50:45 -07:00
Sergey Shandar 82bbd0933e
no .npmignore file 2018-05-31 15:01:32 -07:00
Sergey Shandar 39c7ff3962
NYC 2018-05-31 13:32:17 -07:00
Sergey Shandar aa2d7edffe
ts-node 2018-05-31 13:17:17 -07:00
Sergey Shandar 5740fe1aa2
nyc & ts-node 2018-05-31 12:15:24 -07:00
Sergey Shandar 2285472da0
0.4.40 2018-05-30 16:18:48 -07:00
Sergey Shandar 12396a489d
merge 2018-05-29 17:37:04 -07:00
Sergey Shandar 8b80444b04
types. 2018-05-29 17:19:21 -07:00
Sergey Shandar e6a8363d5c
build script 2018-05-29 17:00:07 -07:00
Sergey Shandar 83aef2ce96
package.json installation 2018-05-29 16:56:05 -07:00
Sergey Shandar a75a0a4d6b
TS improvements 2018-05-29 15:38:27 -07:00
Sergey Shandar 86bb078dab
pack .d.ts files. 2018-05-29 14:17:19 -07:00
Sergey Shandar 2ca3782946
generate *.js and *.d.ts before publishing. 2018-05-29 14:12:35 -07:00
Sergey Shandar 4d04902e6d
JavaScript => TypeScript 2018-05-25 17:18:04 -07:00
Sarangan Rajamanickam 5a03b97c6d Update package.json 2018-05-14 15:51:32 -07:00
mcardosos 1f8003717c Update version and changelog 2018-05-01 12:42:02 -07:00
Mariana Cardoso 3b66388e6e Fixes for paths and non string enums (#238)
* Add path test

* Fix tests

* Update changelog
2018-04-23 19:09:13 -07:00
Vlad Barosan 43b6c9474d Update for sway to include new enum case mismatch error 2018-04-19 19:28:51 -07:00
Vlad Barosan 2fbf9d8164 Add option to model implicit default response 2018-03-15 12:12:08 -07:00
Martin Strobel 96b99b1278 Adding release metadata. 2018-03-08 15:38:45 -08:00
Martin Strobel 0da27305fa Updating package-lock.json 2018-03-08 15:08:42 -08:00
Martin Strobel fa364cdeb8 Updating required version of 'moment' 2018-03-08 14:29:49 -08:00
Martin Strobel 56809236d4 Sneakily reducing the verbosity of oav's CI. 2018-03-08 13:53:35 -08:00
Vlad Barosan e67c70462c
Don't validate pure objects (#221)
* Don't validate pure objects

* Update test for optional query parameters fix in Sway
2018-03-01 11:16:13 -08:00
Vlad Barosan 237053f428
Fix resolve external references bug (#216) 2018-02-08 17:58:25 -08:00
Amar Zavery e37bacf5e2 use utils.getKeys() instead of utils.getValues() 2018-02-08 14:43:21 -08:00
Vlad Barosan 56b6c83fd6
Be more lenient in matching status code string. (#212)
* Update to generalize matching of status code string

* update changelog and version
2018-02-07 17:35:10 -08:00
Vlad Barosan 2483801511 update changelog and version 2018-02-05 10:51:54 -08:00
Vlad Barosan 2ed92fa539 Update autorest-extension-base to official npm package 2018-02-05 10:49:17 -08:00
Vlad Barosan 843bf5bbf6 Fix undefined headers property in model validation 2018-02-01 11:26:47 -08:00
Amar Zavery fd8fb43286 updating loadash to 4.17.4 2018-01-31 18:14:11 -08:00
Vlad Barosan f4177544a5 Update package version and changelog 2018-01-31 12:42:36 -08:00
Vlad Barosan 99c21fb260 Fix all linter issues 2018-01-31 12:40:00 -08:00
Vlad Barosan ff7d81279e Fix bugs and warnings from linter 2018-01-30 18:57:42 -08:00
Amar Zavery f152b66349 Fixed a typo in the variable name while resolving nullable types. 2018-01-30 13:47:53 -08:00
Amar Zavery 3805e565e1 updated changelog and package dependencies 2018-01-17 10:52:33 -08:00
Veronica Giaudrone e02be9dc1f Update to package.json and Changelog 2018-01-05 13:24:41 -08:00
Amar Zavery b946bfdb91 Updated changelog and version in package.json 2017-12-11 15:00:24 -08:00
Amar Zavery 43f526f034 Merge branch 'master' of github.com:Azure/oav into uml 2017-12-11 14:21:56 -08:00
Amar Zavery 31ba4fb54a Ensure discriminator property has the correct enum constant while resolving it. 2017-12-04 18:13:05 -08:00
Amar Zavery 7921344cf7 generate uml diagram 2017-12-04 10:42:00 -08:00
Amar Zavery f405369a4e metadata-changes: update package.json and changelog 2017-11-20 13:55:26 -08:00
Amar Zavery 31d80ba48f update changelog and package version 2017-11-19 15:33:26 -08:00
Amar Zavery 55fc8458e1 update changelog and version 2017-11-09 10:56:19 -08:00
Amar Zavery 2f857831c8 code review feedback 2017-10-24 17:07:48 -07:00
Amar Zavery a0610d73c8 Disable resolving discriminators for semantic validation of a 2.0 openapi spec. 2017-10-24 16:12:08 -07:00
Amar Zavery eb4160c67c fix a bug with polymorphic model validation. Entire tree except the leaf nodes need to be traversed for replacing oneOf references. 2017-10-20 17:36:41 -07:00
Vishrut Shah 92523d1cb0 Updating ChangeLog for release of version 0.4.15 2017-10-18 14:22:35 -07:00
Vishrut Shah d712baf267 Resolve the polymorphic models and validate examples 2017-10-18 14:18:54 -07:00
Veronica Giaudrone 54fc616a63 updating version of package.json and changelog for release 2017-10-17 17:26:33 -07:00
Veronica Giaudrone 1a94f6a365 updating model validator plugin to autorest 2017-10-02 14:10:39 -07:00
Amar Zavery a6c61dd203 update changelog and package.json 2017-09-25 12:03:33 -07:00
Amar Zavery a1dd6e49e2 code fixes for #140 and #165 2017-09-12 19:31:20 -07:00
Amar Zavery 63e5f78f58 add loadash to dependencies. 2017-08-30 11:05:59 -07:00
Amar Zavery 3b60ffc235 updated package version, changelog and package-lock.json 2017-08-30 09:16:40 -07:00
Vishrut Shah 527b0a7aaf Wire format generator fixes 2017-08-23 16:13:36 -07:00
Vishrut Shah b7f9f8c71c Shallow clone repo 2017-08-11 12:07:38 -07:00
Veronica Giaudrone ec8608260b Merge pull request #143 from veronicagg/model-validator-int
Preparing oav to plug-in to autorest
2017-08-04 17:47:47 -07:00
Vishrut Shah f974a31a06 Fixed repo cloning logic for live validator 2017-08-03 13:46:02 -07:00
Veronica Giaudrone 561802d586 addressing code review feedback 2017-08-02 17:01:19 -07:00
Veronica Giaudrone c6192a24b5 Preparing oav to plugin to autorest and adding id to error codes for consistency and documentation 2017-08-02 17:01:19 -07:00
Vishrut Shah 2e5e384003 Release oav version 0.4.7 2017-07-11 17:46:19 -07:00
Amar Zavery 86bd47c015 fixed #134 2017-07-03 15:54:50 -07:00
Amar Zavery 7ac51f45e0 bump package version to 0.4.5 2017-06-26 11:42:05 -07:00
Vishrut Shah 53af698533 Do not reject all cache building while one swagger is malicious 2017-06-01 13:21:24 -07:00
Vishrut Shah 35348849c9 Fixing runtime depedency & releasing version 0.4.3 2017-05-25 19:55:31 -07:00
Vishrut Shah 7530c8e324 Prepare release of oav 0.4.2 2017-05-24 14:56:09 -07:00
veronicagg b33140384a Adding script to retrieve x-ms-examples data from .net sdk test recordings 2017-05-16 15:06:29 -07:00
amarzavery be1cbfc508 ensure long running response status code modeled correctly 2017-04-29 06:06:03 -07:00
amarzavery 31c44003e7 added support for curl 2017-04-28 20:31:07 -07:00
amarzavery 5e7eba7e96 generate wire format in a .md file 2017-04-28 08:57:44 -07:00
amarzavery 79dfcd8b36 removing input from the response to ensure that response is within the size of ETW log response 2017-04-18 19:03:17 -07:00
Amar Zavery 3feb58e34f added jshint 2017-04-18 12:29:25 -07:00
Amar Zavery ef44eae5a6 bumping package version 2017-04-17 21:27:50 -07:00
Amar Zavery 903fba38f9 move validate inside lib and bump package version and its dependencies 2017-04-14 13:45:07 -07:00
Amar Zavery 6bef059b23 fixes 2017-04-13 20:47:38 -07:00
Vishrut Shah e805cd5f49 Adding script to run tests 2017-04-13 15:17:53 -07:00
Vishrut Shah df2e34f499 Adding mocha tests and moving test file to test folder 2017-04-13 15:17:53 -07:00
Vishrut Shah 7418b738fa First version of cache builder and lookup logic for live validation 2017-04-13 15:17:52 -07:00
Amar Zavery 01d40b68c9 fixed resolving orphan children in external docs 2017-04-06 17:09:14 -07:00
Amar Zavery 408cc03005 updated package version 2017-04-03 18:32:05 -07:00
Amar Zavery 735a83e743 update README 2017-03-16 09:34:10 -07:00
Amar Zavery 33ebd5fa46 Merge pull request #72 from amarzavery/publish
ready for publish
2017-03-15 20:20:16 -07:00
Amar Zavery 462a4688aa ready for publish 2017-03-15 20:19:14 -07:00
Amar Zavery fa23da7788 add support for processing swaggers in YAML format 2017-03-04 14:37:06 -08:00
Amar Zavery 3c5ab1b111 imp modifications made to run in rest-api-specs CI 2017-02-06 11:33:36 -08:00
Amar Zavery 4e9adde925 improved result construction 2017-02-04 01:13:47 -08:00
Amar Zavery 00393f0417 improved support for logging, added support to add custom log file path, dependency on a forked version of sway, added support for running cli commands. 2017-02-01 20:46:56 -08:00
Amar Zavery ff1355bf8f resolve relative paths 2017-01-25 22:26:26 -08:00
Amar Zavery 2a95d0225d added support for setting console log level and made minor tweaks to the source code 2017-01-23 21:16:27 -08:00
Amar Zavery 6883f91690 liveTest support, foundation work to merge allOf and set additionalProperties to false 2017-01-19 20:56:42 -08:00
Amar Zavery afdadcae54 move to sway and promises, better logging support, structured cli commands using yargs package, initial protype for live testing 2017-01-16 23:06:51 -08:00
Amar Zavery ff3a44980a adding support for composite swaggers. 2016-11-21 21:26:02 -08:00
Amar Zavery 401c66b7a2 Tool available for dogfooding 2016-11-18 22:49:15 -08:00
Amar Zavery ca43272b87 Initial commit 2016-11-08 16:38:30 -08:00