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
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
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
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
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
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
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
Sergey Shandar
2fd0a562ee
getErrorsFromSemanticValidation() ( #355 )
...
* getErrorsFromSemanticValidation()
* minor
* 0.9.2
* minor
* 0.9.3
* 0.9.1-3
* 0.9.1
2018-11-20 13:33:06 -08:00
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
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
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
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
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
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
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
2e4a5ac0d5
Move to yasway
2018-06-20 16:44:53 -07:00
Sergey Shandar
2bd47bb0ca
revert changes in `validate.ts`
2018-06-19 16:35:06 -07:00
Sergey Shandar
9b527592e8
Replacing `oneOf` with `anyOf`.
2018-06-19 16:28:53 -07:00
Sergey Shandar
0270bc91a2
Repro of #248
2018-06-19 12:23:45 -07:00
Sergey Shandar
6691c43813
A reference on sway.
2018-06-18 14:07:39 -07:00
Sergey Shandar
eca48d9849
address comments
2018-06-11 12:58:08 -07:00
Sergey Shandar
09d132ea09
More TypeScript
2018-06-08 16:35:55 -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
fdf8593fe5
TS improvements.
2018-06-01 10:01:39 -07:00
Sergey Shandar
596e465640
validators
2018-05-31 21:57:09 -07:00
Sergey Shandar
37e3979805
Reference type
2018-05-31 20:26:41 -07:00
Sergey Shandar
8c86884e26
Request,Responses
2018-05-31 18:46:01 -07:00
Sergey Shandar
8d693b8e80
pluginHod.ts
2018-05-31 17:36:35 -07:00
Sergey Shandar
1933c70d9a
types/
2018-05-31 16:50:45 -07:00
Sergey Shandar
5740fe1aa2
nyc & ts-node
2018-05-31 12:15:24 -07:00
Sergey Shandar
5e594a452f
Cache type
2018-05-30 18:54:48 -07:00
Sergey Shandar
cffed7b6c7
yuml2svg.d.ts
2018-05-30 17:23:05 -07:00