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

308 Коммитов

Автор SHA1 Сообщение Дата
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
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
Vishrut Shah 13afb1bafb Bug fixes 2017-04-18 15:35:57 -07:00
Vishrut Shah dfa57da318 Updating live recoedings to export according to required models 2017-04-18 13:40:21 -07:00
Amar Zavery cdae502b21 updated lib/models/index.d.ts 2017-04-17 17:48:47 -07:00
Amar Zavery e14d08bb0c more changes to swagger and generated models accordingly. 2017-04-17 17:37:00 -07:00
Vishrut Shah 888129dd66 Correct initialization of reason 2017-04-17 17:10:00 -07:00
Vishrut Shah 847f109948 Updating changes 2017-04-17 16:33:10 -07:00
Vishrut Shah 3982aa7f03 Remodel getPotentialOperations operation to return reasons 2017-04-17 15:20:08 -07:00
Amar Zavery dfb3fa3385 code restructuring, spec changes, more tests added liveRequestResponseValidation method 2017-04-15 22:59:25 -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 0dfd51065b circular json firx in result construction 2017-04-14 09:19:20 -07:00
Amar Zavery 6bef059b23 fixes 2017-04-13 20:47:38 -07:00
Amar Zavery 11aab083b0 Merge branch 'master' of github.com:Azure/openapi-validation-tools into bfix 2017-04-13 20:39:06 -07:00
Amar Zavery d0631769d3 Added options and a new command to get a resolved spec 2017-04-13 20:32:39 -07:00
Vishrut Shah 97ab24e740 Removing test code from liveValidator 2017-04-13 15:19:19 -07:00
Vishrut Shah 7705d8fdae Adding logic to fall back on searching operation into Microsoft.Unknown 2017-04-13 15:17:53 -07:00
Vishrut Shah e0ab4551ff Updating logic for search and adding 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 270d615061 Minor log updates and fixing self 2017-04-13 15:17:52 -07:00
Vishrut Shah f779562c36 rebased master onto init-cache 2017-04-13 15:17:52 -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 460e684cc7 add support for pure objects #78 2017-04-12 20:44:39 -07:00
Amar Zavery ba39b4fd90 nit fix 2017-04-11 10:37:02 -07:00
Amar Zavery cf27fc5b52 do not url encode if already encoded 2017-04-11 01:05:02 -07:00
Amar Zavery 1c10a1a3f4 fix for headers with Content-Type 2017-04-10 20:57:08 -07:00
Vishrut Shah f1c2aa8255 Correctly set json based Content-Type based on produces or consumes defined in swagger 2017-04-06 21:32:07 -07:00
Amar Zavery 01d40b68c9 fixed resolving orphan children in external docs 2017-04-06 17:09:14 -07:00
Amar Zavery d4e811c37c working version 2017-04-06 13:19:46 -07:00
Amar Zavery 864de36e37 improved error message while parsing the content froma file 2017-03-24 18:15:48 -07:00
Amar Zavery fa23da7788 add support for processing swaggers in YAML format 2017-03-04 14:37:06 -08:00
Amar Zavery 7ce9eff171 additionalProperties not set to false if the object has empty properties or does not have properties 2017-02-24 18:06:43 -08:00
Amar Zavery 693dda2ac8 added support for logging as required for reporting; introduced off and json as two more log levels; small bug fixes 2017-02-24 11:06:31 -08:00
Amar Zavery 80d0f7190a logging changes 2017-02-22 22:47:20 -08:00
Amar Zavery 56d7039cc4 more changes 2017-02-21 18:42:29 -08:00
Amar Zavery 46c75129be initial commit for validation response structure 2017-02-21 14:25:54 -08:00
Amar Zavery 62045cc896 fix resolving directory of relative swagger references 2017-02-08 22:57:18 -08:00
Amar Zavery bc93b145bb imp modifications made to run in rest-api-specs CI 2017-02-05 21:04:06 -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 ec6314df8c fixed issue with request validation error construction 2017-01-31 10:51:27 -08:00
Amar Zavery 82f820390f fix running examples in the spec 2017-01-29 21:49:13 -08:00
Amar Zavery 189068a954 fixed the issue of properties and allOf being added to the spec at the top level and added documentation 2017-01-29 19:33:32 -08:00
Amar Zavery 47dad5192a addressed some of the review feedback 2017-01-26 21:30:06 -08:00
Amar Zavery 8e2eea21c1 resolve allof and some more modifications 2017-01-26 21:04:10 -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 5886d539bc resloving allOf 2017-01-23 10:30:48 -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 7c65ac2a75 check for null and undefined explicitly. 2016-11-22 16:38:30 -08:00
Amar Zavery ac34738c28 non zero exit codes in failure, 1 - spec validation failure, 2 - example validation failure 2016-11-19 15:35:54 -08:00
Amar Zavery 401c66b7a2 Tool available for dogfooding 2016-11-18 22:49:15 -08:00
Amar Zavery 3fd2355d7b temp commit 2016-11-15 20:44:18 -08:00
Amar Zavery ed85244ce8 - added support for validating examples in spec
- added mediaservice.json swagger spec that contains examples in the spec.
2016-11-14 22:26:48 -08:00
Amar Zavery ab011fb893 restrucuture the code base 2016-11-13 22:45:53 -08:00
Amar Zavery ca43272b87 Initial commit 2016-11-08 16:38:30 -08:00