WireMock message stub mapping
WireMock single or multiple async message stub mapping JSON. See https://wiremock.org/docs/messaging/stubbing/
| Type | object |
|---|---|
| File match |
wiremock-message-stub-mapping.yml
wiremock-message-stub-mapping.yaml
message-stubs.json
message-stub-mappings.json
message-stubs.yaml
message-stub-mappings.yaml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/wiremock-message-stub-mapping/latest.json |
| Source | https://raw.githubusercontent.com/wiremock/wiremock/refs/heads/master/schemas/wiremock-message-stub-mapping-or-mappings.json |
Validate with Lintel
npx @lintel/lintel check
One of
Definitions
A base64 encoded string used to describe binary data.
A base64 encoded string used to describe binary data.
Pattern for matching message channels
The type of message channel
19 nested properties
The scheme (protocol) part of the request URL
The hostname part of the request URL
The HTTP port number of the request URL
The path and query to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path and query regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path template to match against. Must conform to the OpenAPI compatible subset of the RFC 6570 URI Template specification. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
Path parameter patterns to match against in the
Query parameter patterns to match against in the
application/x-www-form-urlencoded form parameter patterns to match against in the
Header patterns to match against in the
The client IP address to match against
Pre-emptive basic auth credentials to match against
2 nested properties
Cookie patterns to match against in the
Request body patterns to match against in the { "
Custom request matcher to match against
2 nested properties
The matcher's name specified in the implementation of the matcher.
Multipart patterns to match against headers and body.
The type of message channel
The delay distribution. Valid property configuration is either median/sigma/type or lower/type/upper.
HTTP headers
The status of the server
Longer message regarding the status of the server
The WireMock version
How long the server has been running
The current timestamp
A logged message channel
Unique identifier for this channel
The type of message channel
19 nested properties
The unique identifier for this request
The HTTP request method
The path and query to match exactly against
The full URL to match against
The URL scheme (http/https)
The host part of the URL
The port number
The client IP address
HTTP headers
Cookies received with the request
Body string to match against
Base64 encoded body content
Whether this request was made via a browser proxy
The timestamp when the request was logged (epoch millis)
The formatted date string when the request was logged
Query parameters parsed from the URL
Form parameters parsed from the request body
Multipart form data parts
The HTTP protocol version
Whether the channel is currently open
The unique identifier for this request
The HTTP request method
The path and query to match exactly against
The full URL to match against
The URL scheme (http/https)
The host part of the URL
The port number
The client IP address
HTTP headers
Cookies received with the request
Body string to match against
Base64 encoded body content
Whether this request was made via a browser proxy
The timestamp when the request was logged (epoch millis)
The formatted date string when the request was logged
Query parameters parsed from the URL
Form parameters parsed from the request body
Multipart form data parts
The HTTP protocol version
A valid JSON schema as a string
The JSON schema version to interpret the schema against
Action to perform when a message stub is triggered
Definition of a message to be sent
1 nested properties
The message body
List of transformer names to apply to the message
Parameters to pass to transformers
Result containing message channels
Pagination metadata
1 nested properties
Total number of channels
Definition of a message to be sent
The message body
Pattern for matching messages
19 nested properties
The scheme (protocol) part of the request URL
The hostname part of the request URL
The HTTP port number of the request URL
The path and query to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path and query regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path template to match against. Must conform to the OpenAPI compatible subset of the RFC 6570 URI Template specification. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
Path parameter patterns to match against in the
Query parameter patterns to match against in the
application/x-www-form-urlencoded form parameter patterns to match against in the
Header patterns to match against in the
The client IP address to match against
Pre-emptive basic auth credentials to match against
2 nested properties
Cookie patterns to match against in the
Request body patterns to match against in the { "
Custom request matcher to match against
2 nested properties
The matcher's name specified in the implementation of the matcher.
Multipart patterns to match against headers and body.
A message event logged in the journal
Unique identifier for this message event
Whether the message was received or sent
The type of message channel
ID of the channel on which the message was sent/received
19 nested properties
The unique identifier for this request
The HTTP request method
The path and query to match exactly against
The full URL to match against
The URL scheme (http/https)
The host part of the URL
The port number
The client IP address
HTTP headers
Cookies received with the request
Body string to match against
Base64 encoded body content
Whether this request was made via a browser proxy
The timestamp when the request was logged (epoch millis)
The formatted date string when the request was logged
Query parameters parsed from the URL
Form parameters parsed from the request body
Multipart form data parts
The HTTP protocol version
The message body as a string
A message stub mapping defines how WireMock responds to messages on channels
7 nested properties
This message stub mapping's unique identifier
Alias for the id
The message stub mapping's name
This message stub mapping's priority relative to others. 1 is highest.
Actions to perform when this stub is triggered
Arbitrary metadata to be attached to the stub mapping
Whether this message matched a stub mapping
When the message event occurred
Sub-events that occurred during message processing
Result containing message serve events
Whether the message journal is disabled
A message stub mapping defines how WireMock responds to messages on channels
This message stub mapping's unique identifier
Alias for the id
The message stub mapping's name
This message stub mapping's priority relative to others. 1 is highest.
Actions to perform when this stub is triggered
Arbitrary metadata to be attached to the stub mapping
A collection of message stub mappings
Pagination metadata
1 nested properties
Total number of message stub mappings
Result of a message verification operation
Number of messages matching the criteria
Whether the message journal is disabled
Headers from the request to include in the generated stub mappings, mapped to parameter objects. The only parameter available is "caseInsensitive", which defaults to false
Criteria for extracting response bodies to a separate file instead of including it in the stub mapping
2 nested properties
Size threshold for extracting binary response bodies. Supports humanized size strings, e.g. "56 Mb". Default unit is bytes.
Size threshold for extracting binary response bodies. Supports humanized size strings, e.g. "56 Mb". Default unit is bytes.
Whether to save stub mappings to the file system or just return them
When true, duplicate requests will be added to a Scenario. When false, duplicates are discarded
Control the request body matcher used in generated stub mappings
List of names of stub mappings transformers to apply to generated stubs
Parameters to pass to stub mapping transformers
The scheme (protocol) part of the request URL
The hostname part of the request URL
The HTTP port number of the request URL
The path and query to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path and query regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path template to match against. Must conform to the OpenAPI compatible subset of the RFC 6570 URI Template specification. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
Path parameter patterns to match against in the
Query parameter patterns to match against in the
application/x-www-form-urlencoded form parameter patterns to match against in the
Header patterns to match against in the
The client IP address to match against
Pre-emptive basic auth credentials to match against
2 nested properties
Cookie patterns to match against in the
Request body patterns to match against in the { "
Custom request matcher to match against
2 nested properties
The matcher's name specified in the implementation of the matcher.
Multipart patterns to match against headers and body.
The scenario ID
The scenario name
The current state of this scenario
Request to send a message to channels
The type of message channel
Definition of a message to be sent
1 nested properties
The message body
19 nested properties
The scheme (protocol) part of the request URL
The hostname part of the request URL
The HTTP port number of the request URL
The path and query to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path and query regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path template to match against. Must conform to the OpenAPI compatible subset of the RFC 6570 URI Template specification. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
Path parameter patterns to match against in the
Query parameter patterns to match against in the
application/x-www-form-urlencoded form parameter patterns to match against in the
Header patterns to match against in the
The client IP address to match against
Pre-emptive basic auth credentials to match against
2 nested properties
Cookie patterns to match against in the
Request body patterns to match against in the { "
Custom request matcher to match against
2 nested properties
The matcher's name specified in the implementation of the matcher.
Multipart patterns to match against headers and body.
Result of sending a message to channels
Channels that received the message
Number of channels that received the message
Result containing a single message serve event
A message event logged in the journal
10 nested properties
Unique identifier for this message event
Whether the message was received or sent
The type of message channel
ID of the channel on which the message was sent/received
19 nested properties
The unique identifier for this request
The HTTP request method
The path and query to match exactly against
The full URL to match against
The URL scheme (http/https)
The host part of the URL
The port number
The client IP address
HTTP headers
Cookies received with the request
Body string to match against
Base64 encoded body content
Whether this request was made via a browser proxy
The timestamp when the request was logged (epoch millis)
The formatted date string when the request was logged
Query parameters parsed from the URL
Form parameters parsed from the request body
Multipart form data parts
The HTTP protocol version
The message body as a string
A message stub mapping defines how WireMock responds to messages on channels
7 nested properties
This message stub mapping's unique identifier
Alias for the id
The message stub mapping's name
This message stub mapping's priority relative to others. 1 is highest.
Actions to perform when this stub is triggered
Arbitrary metadata to be attached to the stub mapping
Whether this message matched a stub mapping
When the message event occurred
Sub-events that occurred during message processing
This stub mapping's unique identifier
Alias for the id
The stub mapping's name
19 nested properties
The scheme (protocol) part of the request URL
The hostname part of the request URL
The HTTP port number of the request URL
The path and query to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path and query regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path template to match against. Must conform to the OpenAPI compatible subset of the RFC 6570 URI Template specification. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
Path parameter patterns to match against in the
Query parameter patterns to match against in the
application/x-www-form-urlencoded form parameter patterns to match against in the
Header patterns to match against in the
The client IP address to match against
Pre-emptive basic auth credentials to match against
2 nested properties
Cookie patterns to match against in the
Request body patterns to match against in the { "
Custom request matcher to match against
2 nested properties
The matcher's name specified in the implementation of the matcher.
Multipart patterns to match against headers and body.
Indicates that the stub mapping should be persisted immediately on create/update/delete and survive resets to default.
This stub mapping's priority relative to others. 1 is highest.
The name of the scenario that this stub mapping is part of
The required state of the scenario in order for this stub to be matched.
The new state for the scenario to be updated to after this stub is served.
DEPRECATED: Use serveEventListeners instead.
A map of the names of post serve action extensions to trigger and their parameters.
The list of serve event listeners
Arbitrary metadata to be used for e.g. tagging, documentation. Can also be used to find and remove stubs.
1 nested properties
Request to wait for message events
Maximum time to wait in milliseconds
Pattern for matching messages
2 nested properties
19 nested properties
The scheme (protocol) part of the request URL
The hostname part of the request URL
The HTTP port number of the request URL
The path and query to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path to match exactly against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path and query regex to match against. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
The path template to match against. Must conform to the OpenAPI compatible subset of the RFC 6570 URI Template specification. Only one of url, urlPattern, urlPath or urlPathPattern may be specified.
Path parameter patterns to match against in the
Query parameter patterns to match against in the
application/x-www-form-urlencoded form parameter patterns to match against in the
Header patterns to match against in the
The client IP address to match against
Pre-emptive basic auth credentials to match against
Cookie patterns to match against in the
Request body patterns to match against in the { "
Custom request matcher to match against
Multipart patterns to match against headers and body.
Number of messages to wait for (for wait-for-count endpoint)