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

201 Коммитов

Автор SHA1 Сообщение Дата
Sergey Shandar 11fd7095dc
Update packages. (#336) 2018-10-09 10:25:11 -07:00
Sergey Shandar 7ed2e905e5 another fix. (#335) 2018-10-08 17:29:57 -07:00
Sergey Shandar 2fc25411ed
Reading file from HTTPS (#334) 2018-10-08 16:05:29 -07:00
Sergey Shandar 9f268206fe
fix find readme (#333)
* replace `findReadMe` file.

* get suppressions from HTTPS

* changelog
2018-10-08 12:27:16 -07:00
Sergey Shandar eca7ad99f5 Sergey/source map dtss (#331)
* source-map 0.2.11

* source file
2018-10-03 16:56:50 -07:00
Sergey Shandar 2a3249922e
suppress promise rejection (#330) 2018-10-03 10:11:07 -07:00
Sergey Shandar b12d59ed52
Fix URL encoding test. (#329) 2018-10-02 13:38:39 -07:00
Sergey Shandar 4add21a51a
Fix yasway (#327) 2018-10-02 11:22:43 -07:00
Sergey Shandar 676912381e
New suppression API (#326)
* New suppression API

* update

* createDummy() is removed.
2018-10-01 17:51:07 -07:00
Sergey Shandar 8c3786ccf4
Suppression support for `from` field. (#324)
* assignOptional

* handle path

* handle "from"

* 0.6.5

* `where` implementation

* address comments

* more comments.

* remove assignOptional
2018-09-28 11:20:39 -07:00
Sergey Shandar 2a68bde234
fix .d.ts mapping (#323) 2018-09-26 14:20:05 -07:00
Sergey Shandar 2f90b77417
Source Map (#322) 2018-09-25 17:18:31 -07:00
Sergey Shandar 25f17f7cfa Fix for `resolve-spec` CLI #320 (#321) 2018-09-25 13:19:56 -07:00
Sergey Shandar 0a7acc96f0
semantic validation bug fix (#319)
* semantic validation bug fix

* minor
2018-09-25 10:44:00 -07:00
Sergey Shandar c31480764b
Suppression. No `where` support yet. (#317)
* read markdown file.

* suppressions

* supression object

* Return suppressions

* update package-lock.

* prettyPrint() function

* processErrors()

* pass suppression

* where is not implemented yet

* changelog

* TODO:

* resolve conflicts

* switch back to z-schema

* Suppression test

* comments
2018-09-24 16:21:14 -07:00
Veronica Giaudrone b41b253b1b Fix semantic result in validate spec instead of editing afterwards (#318)
* Adding reference documentation for oav model validation

* correcting where url and position get added in the error result

* adding changelog and updating oav version
2018-09-21 16:42:46 -07:00
Veronica Giaudrone b6dab0f577 Semantic errors source (#316)
* Adding reference documentation for oav model validation

* adding url and position information to semantic validation errors

* updating package.json

* adding changelog
2018-09-19 17:39:46 -07:00
Veronica Giaudrone fcfbef76ab Pretty printing for semantic errors (validate-spec command) (#315)
* Adding reference documentation for oav model validation

* adding pretty printing to validate-spec command

* adding changelog
2018-09-19 14:37:07 -07:00
Sergey Shandar 43d4fbe615
Fix for x-ms-examples extractor (#314)
* Suppression Design

* Update swagger-parser

* test files for extracting x-ms-examples

* Remove dead code.

* reproducing errors.

* Remove errors.

* 0.5.10

* address comments.
2018-09-18 11:49:56 -07:00
Sergey Shandar 89adda705c
@ts-common/z-schema (#310) 2018-09-11 13:35:30 -07:00
Sergey Shandar 5f43b2db45
Fix for special symbols inside JSON-Pointer/Reference (#308)
* test for nested properties with `@` character.

* update json-refs.

* fix JSON-Pointer
2018-09-10 17:01:55 -07:00
Sergey Shandar 5417eec6d6
Errors have optional `jsonUrl` and `jsonPosition` fields. (#306)
* sm.isEmpty

* Fix error

* first test

* changelog, yasway

* bug

* commented code

* tslint

* fix

* remove dead code

* merge

* minor

* readonly

* simplified

* address comments

* description in ResponseObject

* sample position

* schema

* path to error

* update of source-map

* update z-schema and yasway

* update package

* changelog

* minor

* address comments

* tests

* bug fix
2018-08-28 15:13:12 -07:00
Sergey Shandar 88160960ef
Proper fix for cloudError (#305)
* sm.isEmpty

* Fix error

* first test

* changelog, yasway

* bug

* commented code

* tslint

* fix

* remove dead code

* merge

* minor

* readonly

* simplified

* address comments
2018-08-23 13:55:38 -07:00
Sergey Shandar 299cc866be
Fix for CloudError (#304)
* sm.isEmpty

* Fix error

* first test

* changelog, yasway

* bug

* commented code
2018-08-22 14:32:01 -07:00
Sergey Shandar 8a0ffce1cc
Simplified object information. No `cloneDeep` from `lodash` (#303)
* new info structure (using functions)

* no upgrade for yassway

* version and changelog

* merge signature improved
2018-08-22 10:22:47 -07:00
Sergey Shandar 811f549921 friendly nested names (#299)
* friendly names

* generated name
2018-08-21 17:52:41 -07:00
Sergey Shandar 4fc35d48c6
Fix for `file` in `schema` (#298)
* minor

* remove `json-source-map`

* don't resolve "file" schemas

* downgrade json-refs

* style

* 0.5.2
2018-08-21 15:11:30 -07:00
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 09d132ea09
More TypeScript 2018-06-08 16:35:55 -07:00
Sergey Shandar 39a5d1c123
run tslint always 2018-06-04 13:10:57 -07:00
Sergey Shandar 04fef563b9
tslinter 2018-06-01 17:26:20 -07:00
Sergey Shandar f19a026a2e
winston 2018-05-31 17:23:51 -07:00
Sergey Shandar 5740fe1aa2
nyc & ts-node 2018-05-31 12:15:24 -07:00
Sergey Shandar 01331346fa
package-lock 2018-05-30 17:20:36 -07:00
Sergey Shandar a75a0a4d6b
TS improvements 2018-05-29 15:38:27 -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 1530142a2a Add test and address feedback 2018-03-15 14:55:52 -07:00
Vlad Barosan 2fbf9d8164 Add option to model implicit default response 2018-03-15 12:12:08 -07:00
Martin Strobel 0da27305fa Updating package-lock.json 2018-03-08 15:08:42 -08:00
Vlad Barosan 24204fc4ea Update package lock to refer new sway version 2018-03-02 20:05: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
Vlad Barosan f92b9b06d0
Update package-lock.json file (#205) 2018-01-31 17:26:24 -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
mcardosos c5965d7feb Progress? 2018-01-26 15:49:23 -08:00
Amar Zavery 3805e565e1 updated changelog and package dependencies 2018-01-17 10:52:33 -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 a0610d73c8 Disable resolving discriminators for semantic validation of a 2.0 openapi spec. 2017-10-24 16:12:08 -07:00
Amar Zavery 4869978d30 update changelog and package-lock.json 2017-10-20 17:45:40 -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
Amar Zavery a6c61dd203 update changelog and package.json 2017-09-25 12:03:33 -07:00
Amar Zavery 91d6610d34 update 2017-09-14 15:31:08 -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 3d0445e0fa updating package-lock.json 2017-08-04 17:41:49 -07:00
Veronica Giaudrone 561802d586 addressing code review feedback 2017-08-02 17:01:19 -07:00