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

533 Коммитов

Автор SHA1 Сообщение Дата
Sergey Shandar 89647dbdf2
fix type errors (#354)
* type script error fix.

* better model validation errors.

* Improve error types
2018-11-19 14:46:43 -08:00
Sergey Shandar 77f719dcdf
Fix for suppressions. (#353)
* Fix for suppression.

* minor

* iterator 0.1.1

* live validation test fix.

* Changelog.

* `where` and `from`
2018-11-16 14:47:04 -08:00
Sergey Shandar 74a8db6e6c
Fix for examples in spec. (#352)
* clouderror source map

* 0.7.15

* additional checks.

* generating cloud error

* additional tests

* fix for inline examples

* changelog

* 0.8.0

* lock

* remove useless checks

* address comments

* more comments.
2018-11-15 17:04:07 -08:00
Sergey Shandar d6eac3c69d
swagger definition update & remove dead code (#351)
* cloud error tests

* new swagger definition

* simple semantic validation
2018-11-08 16:36:39 -08:00
Sergey Shandar 945f32092c
update status badge to Azure DevOps. (#350) 2018-11-06 10:26:20 -08:00
Sergey Shandar c65d4ffc3c
No travis-CI (#348)
* No travis-CI

* test reporters

* minor
2018-11-01 15:59:56 -07:00
Sergey Shandar cb4a05e091
azure-pipelines (#347)
* azure-pipelines

* fix
2018-11-01 11:34:22 -07:00
Sergey Shandar 705157a9ab
switch from `@ts-common/azure-openapi-markdown` to `@azure/openapi-markdown`. (#346) 2018-10-23 16:56:21 -07:00
Sergey Shandar f918ba1860
Exported functions don't catch exceptions. (#343)
* Exported functions don't catch exceptions.

* remove suppression-bugs.md

* copyright.

* no run.cmd

* unit test
2018-10-18 14:07:49 -07:00
Sergey Shandar c6b3b9bed2
Provide schema information for all Schema Objects. (#341)
* update all schema objects

* 0.7.10

* changelog

* unit test

* address comments
2018-10-15 16:29:12 -07:00
Sergey Shandar 87922a8f56
Source Map for generated objects. (#339)
* update changelog

* Update

* clearCache()

* Fix suppression errors.

* remove unused function

* fix compilation errors.

* address comments

* address comments.

* test

* test: errorDetails

* improved source map test
2018-10-12 19:42:35 -07:00
Sergey Shandar f097b08ff4
update changelog (#337) 2018-10-10 10:59:43 -07:00
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 749c8e64ac
No Nesting for non-discriminator errors (#295) 2018-08-16 18:55:58 -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 dc8d3df682 Update changelog for 0.4.64 (#288) 2018-08-10 12:43:49 -07:00
Vlad Barosan fbefba5149
Insert title to schema (#287) 2018-08-08 15:51:46 -07:00