software.xdev.mockserver.schema.expectation.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
MockServer NeoLight Core
{
"title": "expectation",
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string"
},
"priority": {
"type": "integer"
},
"httpRequest": {
"$ref": "#/definitions/requestDefinition"
},
"httpResponse": {
"$ref": "#/definitions/httpResponse"
},
"httpResponseTemplate": {
"$ref": "#/definitions/httpTemplate"
},
"httpResponseClassCallback": {
"$ref": "#/definitions/httpClassCallback"
},
"httpResponseObjectCallback": {
"$ref": "#/definitions/httpObjectCallback"
},
"httpForward": {
"$ref": "#/definitions/httpForward"
},
"httpForwardTemplate": {
"$ref": "#/definitions/httpTemplate"
},
"httpForwardClassCallback": {
"$ref": "#/definitions/httpClassCallback"
},
"httpForwardObjectCallback": {
"$ref": "#/definitions/httpObjectCallback"
},
"httpOverrideForwardedRequest": {
"$ref": "#/definitions/httpOverrideForwardedRequest"
},
"httpError": {
"$ref": "#/definitions/httpError"
},
"times": {
"$ref": "#/definitions/times"
},
"timeToLive": {
"$ref": "#/definitions/timeToLive"
},
"timestamp": {
"description": "added to allow request and response log output to be used to create expectations",
"type": "string"
}
},
"oneOf": [
{
"required": [
"httpResponse"
]
},
{
"required": [
"httpResponseTemplate"
]
},
{
"required": [
"httpResponseObjectCallback"
]
},
{
"required": [
"httpResponseClassCallback"
]
},
{
"required": [
"httpForward"
]
},
{
"required": [
"httpForwardTemplate"
]
},
{
"required": [
"httpForwardObjectCallback"
]
},
{
"required": [
"httpForwardClassCallback"
]
},
{
"required": [
"httpOverrideForwardedRequest"
]
},
{
"required": [
"httpError"
]
}
],
"definitions": {
}
}