Merge pull request #7 from amarzavery/test
removed input from response and updated dependency of oav
This commit is contained in:
Коммит
026231a90d
|
@ -156,11 +156,6 @@
|
|||
"description": "Describes the validation result of the live request, response validation.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"input": {
|
||||
"description": "Provides the body parameter back in the response. This makes it easier to generate reports by correlating input and validation output in one object.",
|
||||
"readOnly": true,
|
||||
"$ref": "#/definitions/RequestResponse"
|
||||
},
|
||||
"requestValidationResult": {
|
||||
"description": "Describes the validation result of the live request.",
|
||||
"$ref": "#/definitions/RequestValidationResult",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "oav-express",
|
||||
"version": "0.1.0",
|
||||
"version": "0.2.0",
|
||||
"author": {
|
||||
"name": "Microsoft Corporation",
|
||||
"email": "azsdkteam@microsoft.com",
|
||||
|
@ -17,7 +17,7 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"oav": "^0.3.0",
|
||||
"oav": "^0.3.1",
|
||||
"express": "^4.15.2",
|
||||
"body-parser": "^1.17.1",
|
||||
"cookie-parser": "^1.4.3",
|
||||
|
|
|
@ -215,36 +215,6 @@ export interface ResponseValidationResult {
|
|||
* @constructor
|
||||
* Describes the validation result of the live request, response validation.
|
||||
*
|
||||
* @member {object} [input] Provides the body parameter back in the response.
|
||||
* This makes it easier to generate reports by correlating input and validation
|
||||
* output in one object.
|
||||
*
|
||||
* @member {object} [input.liveRequest] Schema for the live request to be
|
||||
* validated
|
||||
*
|
||||
* @member {object} [input.liveRequest.headers] Headers of the request.
|
||||
*
|
||||
* @member {string} [input.liveRequest.method] Http verb of the request.
|
||||
* Possible values include: 'GET', 'PUT', 'PATCH', 'POST', 'DELETE', 'HEAD',
|
||||
* 'OPTIONS', 'TRACE'
|
||||
*
|
||||
* @member {string} [input.liveRequest.url] Url of the request.
|
||||
*
|
||||
* @member {object} [input.liveRequest.body] Parsed body of the request as a
|
||||
* JSON.
|
||||
*
|
||||
* @member {object} [input.liveResponse] Schema for the live response to be
|
||||
* validated
|
||||
*
|
||||
* @member {string} [input.liveResponse.statusCode] The Response status code.
|
||||
*
|
||||
* @member {object} [input.liveResponse.headers] Headers of the response.
|
||||
*
|
||||
* @member {object} [input.liveResponse.body] Body of the response.
|
||||
*
|
||||
* @member {string} [input.liveResponse.encoding] The encoding of the response
|
||||
* body when the body is a buffer.
|
||||
*
|
||||
* @member {object} [requestValidationResult] Describes the validation result
|
||||
* of the live request.
|
||||
*
|
||||
|
@ -275,7 +245,6 @@ export interface ResponseValidationResult {
|
|||
*
|
||||
*/
|
||||
export interface ValidationResult {
|
||||
readonly input?: RequestResponse;
|
||||
readonly requestValidationResult?: RequestValidationResult;
|
||||
readonly responseValidationResult?: ResponseValidationResult;
|
||||
readonly errors?: ErrorWrapper[];
|
||||
|
|
|
@ -18,36 +18,6 @@ const models = require('./index');
|
|||
* @constructor
|
||||
* Describes the validation result of the live request, response validation.
|
||||
*
|
||||
* @member {object} [input] Provides the body parameter back in the response.
|
||||
* This makes it easier to generate reports by correlating input and validation
|
||||
* output in one object.
|
||||
*
|
||||
* @member {object} [input.liveRequest] Schema for the live request to be
|
||||
* validated
|
||||
*
|
||||
* @member {object} [input.liveRequest.headers] Headers of the request.
|
||||
*
|
||||
* @member {string} [input.liveRequest.method] Http verb of the request.
|
||||
* Possible values include: 'GET', 'PUT', 'PATCH', 'POST', 'DELETE', 'HEAD',
|
||||
* 'OPTIONS', 'TRACE'
|
||||
*
|
||||
* @member {string} [input.liveRequest.url] Url of the request.
|
||||
*
|
||||
* @member {object} [input.liveRequest.body] Parsed body of the request as a
|
||||
* JSON.
|
||||
*
|
||||
* @member {object} [input.liveResponse] Schema for the live response to be
|
||||
* validated
|
||||
*
|
||||
* @member {string} [input.liveResponse.statusCode] The Response status code.
|
||||
*
|
||||
* @member {object} [input.liveResponse.headers] Headers of the response.
|
||||
*
|
||||
* @member {object} [input.liveResponse.body] Body of the response.
|
||||
*
|
||||
* @member {string} [input.liveResponse.encoding] The encoding of the response
|
||||
* body when the body is a buffer.
|
||||
*
|
||||
* @member {object} [requestValidationResult] Describes the validation result
|
||||
* of the live request.
|
||||
*
|
||||
|
@ -95,15 +65,6 @@ class ValidationResult {
|
|||
name: 'Composite',
|
||||
className: 'ValidationResult',
|
||||
modelProperties: {
|
||||
input: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'input',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'RequestResponse'
|
||||
}
|
||||
},
|
||||
requestValidationResult: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
|
|
Загрузка…
Ссылка в новой задаче