swagger.schemas.response-definition.yaml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wiremock-standalone Show documentation
Show all versions of wiremock-standalone Show documentation
A web service test double for all occasions - standalone edition
allOf:
- type: object
properties:
status:
type: integer
description: The HTTP status code to be returned
statusMessage:
type: string
description: The HTTP status message to be returned
headers:
type: object
description: Map of response headers to send
additionalProxyRequestHeaders:
type: object
description: Extra request headers to send when proxying to another host.
body:
type: string
description: The response body as a string. Only one of body, base64Body, jsonBody or bodyFileName may be specified.
base64Body:
type: string
description: The response body as a base64 encoded string (useful for binary content). Only one of body, base64Body, jsonBody or bodyFileName may be specified.
jsonBody:
type: object
description: The response body as a JSON object. Only one of body, base64Body, jsonBody or bodyFileName may be specified.
bodyFileName:
type: string
description: The path to the file containing the response body, relative to the configured file root. Only one of body, base64Body, jsonBody or bodyFileName may be specified.
fault:
type: string
description: The fault to apply (instead of a full, valid response).
enum:
- CONNECTION_RESET_BY_PEER
- EMPTY_RESPONSE
- MALFORMED_RESPONSE_CHUNK
- RANDOM_DATA_THEN_CLOSE
fixedDelayMilliseconds:
type: integer
description: Number of milliseconds to delay be before sending the response.
delayDistribution:
description: The delay distribution. Valid property configuration is either median/sigma/type or lower/type/upper.
$ref: "delay-distribution.yaml"
fromConfiguredStub:
type: boolean
description: Read-only flag indicating false if this was the default, unmatched response. Not present otherwise.
proxyBaseUrl:
type: string
description: The base URL of the target to proxy matching requests to.
transformerParameters:
type: object
description: Parameters to apply to response transformers.
transformers:
type: array
description: List of names of transformers to apply to this response.
items:
type: string