All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.xdev.mockserver.schema.expectation.json Maven / Gradle / Ivy

There is a newer version: 1.0.8
Show newest version
{
  "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": {
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy