Skip to content

Commit

Permalink
fixed OpenAPI specification for Delay
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdbloom committed Nov 15, 2018
1 parent 58aedbd commit 6e73b42
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"type": "object",
"additionalProperties": false,
"properties": {
"delay": {
"$ref": "#/definitions/delay"
},
"callbackClass": {
"type": "string"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"type": "object",
"additionalProperties": false,
"properties": {
"delay": {
"$ref": "#/definitions/delay"
},
"host": {
"type": "string"
},
Expand All @@ -14,9 +17,6 @@
"HTTP",
"HTTPS"
]
},
"delay": {
"$ref": "#/definitions/delay"
}
},
"definitions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"type": "object",
"additionalProperties": false,
"properties": {
"delay": {
"$ref": "#/definitions/delay"
},
"clientId": {
"type": "string"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"type": "object",
"additionalProperties": false,
"properties": {
"httpRequest": {
"$ref": "#/definitions/httpRequest"
},
"delay": {
"$ref": "#/definitions/delay"
},
"httpRequest": {
"$ref": "#/definitions/httpRequest"
}
},
"definitions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"type": "object",
"additionalProperties": false,
"properties": {
"body": {
"$ref": "#/definitions/bodyWithContentType"
},
"delay": {
"$ref": "#/definitions/delay"
},
"body": {
"$ref": "#/definitions/bodyWithContentType"
},
"cookies": {
"$ref": "#/definitions/keyToValue"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"type": "object",
"additionalProperties": false,
"properties": {
"delay": {
"$ref": "#/definitions/delay"
},
"templateType": {
"enum": [
"JAVASCRIPT",
Expand All @@ -11,9 +14,6 @@
},
"template": {
"type": "string"
},
"delay": {
"$ref": "#/definitions/delay"
}
},
"definitions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,24 @@ components:
oneOf:
- required:
- httpResponse
- required:
- httpResponseTemplate
- required:
- httpResponseClassCallback
- required:
- httpResponseObjectCallback
- required:
- httpForward
- required:
- httpClassCallback
- httpForwardTemplate
- required:
- httpError
- httpForwardClassCallback
- required:
- httpObjectCallback
- httpForwardObjectCallback
- required:
- httpOverrideForwardedRequest
- required:
- httpError
HttpRequest:
title: "request matcher"
type: object
Expand All @@ -299,10 +309,10 @@ components:
type: object
additionalProperties: false
properties:
body:
$ref: "#/components/schemas/BodyWithContentType"
delay:
$ref: "#/components/schemas/Delay"
body:
$ref: "#/components/schemas/BodyWithContentType"
cookies:
$ref: "#/components/schemas/KeyToValue"
connectionOptions:
Expand All @@ -318,19 +328,21 @@ components:
type: object
additionalProperties: false
properties:
delay:
$ref: "#/components/schemas/Delay"
templateType:
enum:
- JAVASCRIPT
- VELOCITY
template:
type: string
delay:
$ref: "#/components/schemas/Delay"
HttpForward:
title: host and port to forward to
type: object
additionalProperties: false
properties:
delay:
$ref: "#/components/schemas/Delay"
host:
type: string
port:
Expand All @@ -339,31 +351,33 @@ components:
enum:
- HTTP
- HTTPS
delay:
$ref: "#/components/schemas/Delay"
HttpClassCallback:
title: class callback
type: object
additionalProperties: false
properties:
delay:
$ref: "#/components/schemas/Delay"
callbackClass:
type: string
HttpObjectCallback:
title: object / method callback
type: object
additionalProperties: false
properties:
delay:
$ref: "#/components/schemas/Delay"
clientId:
type: string
HttpOverrideForwardedRequest:
title: override forwarded request
type: object
additionalProperties: false
properties:
httpRequest:
$ref: "#/components/schemas/HttpRequest"
delay:
$ref: "#/components/schemas/Delay"
httpRequest:
$ref: "#/components/schemas/HttpRequest"
HttpError:
title: error behaviour
type: object
Expand Down

0 comments on commit 6e73b42

Please sign in to comment.