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
Sergey Shandar
475bc5a6ad
error.ts
2018-05-30 17:17:30 -07:00
Sergey Shandar
136d1b3ead
more TypeScript
2018-05-30 16:16:24 -07:00
Sergey Shandar
8e03be5f5c
specValidator
2018-05-30 15:40:34 -07:00
Sergey Shandar
6e3be56a43
async
2018-05-30 14:37:08 -07:00
Sergey Shandar
16e4b34186
yargs
2018-05-30 13:48:01 -07:00
Sergey Shandar
5f63183acf
more types
2018-05-29 23:53:02 -07:00
Sergey Shandar
c7ebe28720
imports
2018-05-29 21:33:36 -07:00
Sergey Shandar
51c36fddd1
xMsExampleExtractor
2018-05-29 20:30:11 -07:00
Sergey Shandar
edc9594b57
wireFormatGenerator
2018-05-29 18:36:27 -07:00
Sergey Shandar
374af224ee
specValidator
2018-05-29 18:33:22 -07:00
Sergey Shandar
7aa1fb93d6
specResolver
2018-05-29 18:31:41 -07:00
Sergey Shandar
6d616105b7
validationResponse
2018-05-29 18:27:01 -07:00
Sergey Shandar
45560412f2
utils
2018-05-29 18:20:42 -07:00
Sergey Shandar
555f90b9da
logging
2018-05-29 18:14:35 -07:00
Sergey Shandar
efd237cfe4
Contants.
2018-05-29 18:04:11 -07:00
Sergey Shandar
653f6da087
blah
2018-05-29 16:49:20 -07:00
Sergey Shandar
c89376bd36
multiple exports
2018-05-29 16:11:47 -07:00
Sergey Shandar
a75a0a4d6b
TS improvements
2018-05-29 15:38:27 -07:00
Sergey Shandar
68a1e601d8
improve typescript declarations.
2018-05-29 14:39:24 -07:00
Sergey Shandar
4d04902e6d
JavaScript => TypeScript
2018-05-25 17:18:04 -07:00
Sarangan Rajamanickam
e68ce7eaff
Fix Parameter missing issue with parameterized host extension
2018-05-14 14:40:29 -07:00
mcardosos
b4e55f0dd4
Extract headers
2018-04-30 18:45:17 -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
ef94a0beac
Add innererror to cloudError model
2018-03-15 15:15:01 -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
7f0bb8594a
Adding back off and json special cases.
2018-03-08 14:14:41 -08:00
Martin Strobel
245267deb2
Adding back outer if statement.
...
Reading is good. Sorry folks.
2018-03-08 13:57:32 -08:00
Martin Strobel
f4d89182bd
Respect desired logLevel
...
Despite setting the consoleLogLevel to 'error' here:
32610853cf/test/semantic.js (L19)
A lot of extra lines are being output in CI right now, as seen here:
https://travis-ci.org/Azure/azure-rest-api-specs/jobs/351021743#L694
2018-03-08 13:45:10 -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
Garrett Serack
71252299c9
fixed autorest extension usage ( #211 )
2018-02-07 15:28:06 -08:00
Vlad Barosan
4594adca86
Addressing PR feedback
2018-02-05 14:15:59 -08:00
Vlad Barosan
2aaf70d782
Add support for status code string message in live validation
2018-02-05 10:47:02 -08:00
Vlad Barosan
843bf5bbf6
Fix undefined headers property in model validation
2018-02-01 11:26:47 -08:00
Vlad Barosan
99c21fb260
Fix all linter issues
2018-01-31 12:40:00 -08:00
Vlad Barosan
aaa3851d03
Option to make regex match for live validation case insensitive
2018-01-30 19:04:56 -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
e7721821e9
Merge pull request #192 from mcardosos/file
...
File
2018-01-17 10:20:32 -08:00
mcardosos
5bbf7114b1
Fixes consumes and produces
2018-01-16 16:37:37 -08:00
mcardosos
70327dce09
Feedback
2018-01-16 13:30:35 -08:00
mcardosos
10a5878451
Does not error on missing definitions section
2018-01-11 17:17:09 -08:00
mcardosos
0cc12ed317
Sets content type correctly on request
2018-01-09 18:54:22 -08:00
Veronica Giaudrone
df2a2fa8aa
correcting one more case and fixing bug in isPureObject
2018-01-05 11:58:02 -08:00
Veronica Giaudrone
d3d0c896f5
addressing remaining code review feedback
2018-01-05 11:58:02 -08:00
Veronica Giaudrone
021fa30f6b
addressing part of CR feedback and semantic validation impact
2018-01-05 11:58:02 -08:00
Veronica Giaudrone
da2a3df1f5
updating code for nullable types and tests
2018-01-05 11:58:02 -08:00
Veronica Giaudrone
d43d2076a5
allow null types
2018-01-05 11:58:02 -08:00
Amar Zavery
ce4b5805f9
Fixed #190 and #191
2017-12-11 15:00:14 -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
3bdc7d5191
Addressed review feedback
2017-12-05 14:22:07 -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
279aeb35e1
added test and more options
2017-12-04 13:10:41 -08:00
Amar Zavery
7921344cf7
generate uml diagram
2017-12-04 10:42:00 -08:00
Amar Zavery
700cb47dd4
add test for semantic validation
2017-11-21 13:19:57 -08:00
Amar Zavery
c17fc72aff
code-changes: add support for x-ms-parameterized-host
2017-11-20 12:39:15 -08:00
Amar Zavery
b50198201d
code change: validating examples for parameters in formData
2017-11-19 15:28:55 -08:00
Amar Zavery
8e3418dd32
Merge pull request #180 from amarzavery/semantic-dis
...
provide baseUrl by looking at the host and the basePath property
2017-11-09 10:25:33 -08:00
Amar Zavery
26a8049f2e
provide baseUrl by looking at the host and the basePath property
2017-11-08 13:56:30 -08:00
Vlad Barosan
b7bdb5da14
Allow custom swagger paths pattern for building the models cache
2017-11-08 12:47:47 -08:00
Vlad Barosan
e487a14912
Allow custom branch when cloning git repo
2017-11-06 17:02:49 -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
d78755ab18
Adding first set of test cases
2017-10-18 14:18:54 -07:00
Vishrut Shah
d712baf267
Resolve the polymorphic models and validate examples
2017-10-18 14:18:54 -07:00
Veronica Giaudrone
1a94f6a365
updating model validator plugin to autorest
2017-10-02 14:10:39 -07:00
Amar Zavery
2b517949ca
Provide the filename that has an incorrect json.
2017-09-25 12:01:16 -07:00
Amar Zavery
d181d25349
handle the case of "?" in path across liveValidator, specValidator and wireformatGenerator.
2017-09-14 15:05:06 -07:00
Amar Zavery
52137e0510
addressed feedback and made changes to the logic of unifying xmsPaths. Instead of replacing question markwith slashes from the paths in xmsPaths we will handle them while constructing request in model validation and wireformat generation.
2017-09-14 14:03:32 -07:00
Amar Zavery
818ba553be
addressed feedback
2017-09-14 11:53:25 -07:00
Amar Zavery
a1dd6e49e2
code fixes for #140 and #165
2017-09-12 19:31:20 -07:00
Amar Zavery
77ad3161eb
fixes #161
2017-08-30 09:06:55 -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
Veronica Giaudrone
75e5462566
updating live validator based on feedback
2017-08-03 15:17:14 -07:00
Vishrut Shah
d5dcf4a354
Skipping the live and wire-format folders
2017-08-03 13:58:27 -07:00
Vishrut Shah
f974a31a06
Fixed repo cloning logic for live validator
2017-08-03 13:46:02 -07:00
Veronica Giaudrone
dbc63eb289
updating live validation error
2017-08-02 17:16:13 -07:00
Veronica Giaudrone
561802d586
addressing code review feedback
2017-08-02 17:01:19 -07:00
Veronica Giaudrone
e3d95d906d
Fixing bug found via CI - live validator tests
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
6252310066
Live validator changes to support re-orged repo: azure-rest-api-specs
2017-07-11 16:24:27 -07:00
Amar Zavery
86bd47c015
fixed #134
2017-07-03 15:54:50 -07:00
Amar Zavery
ca444de537
separating md and yaml templates
2017-06-28 09:49:33 -07:00
Amar Zavery
ec0d891aec
initial commit to support yaml format
2017-06-26 10:59:40 -07:00
Vishrut Shah
f7cf17e7c9
Merge pull request #130 from vishrutshah/bug-fix
...
Minor bug fix in error construction
2017-06-07 22:04:00 -07:00
Vishrut Shah
a537d7c835
Addressing CR feedback
2017-06-07 11:28:53 -07:00
Vishrut Shah
1d309b2fb4
Minor bug fix in error construction
2017-06-06 11:58:48 -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
e091bc0d61
Bit more precise documentation for cli
2017-05-25 14:21:11 -07:00
Vishrut Shah
474e6c59a0
addressing code review feedbacks
2017-05-24 13:30:41 -07:00
Vishrut Shah
9242594058
Renaming xMsExampleGenerator to xMsExampleExtractor.js
2017-05-23 11:46:20 -07:00
Vishrut Shah
b2097d45ff
Updating command line options and adding log levels
2017-05-23 11:31:14 -07:00
Vishrut Shah
93c34bc224
Adding new CLI command for extracting xmsexamples from recordings
2017-05-23 09:28:17 -07:00
amarzavery
be1cbfc508
ensure long running response status code modeled correctly
2017-04-29 06:06:03 -07:00