MockResponse
A loaded mock response variant, sourced from an OpenAPI response example declared in the spec (responses.<code>.content.<mediaType>.examples.<name>, see com.worldline.devview.networkmock.core.openapi.ExampleObject).
The identity of a response variant is the pair (statusCode, exampleName), not a file name — the file path (externalValue) is an implementation detail a spec author is free to move without changing which variant a user has selected. See OperationMockState.Mock.
See also
Constructors
Properties
The concrete HTTP Content-Type header value emitted for this response. OpenAPI media ranges (such as wildcard types) are resolved to a concrete type compatible with content (application/json, text/plain, or application/octet-stream). Explicit types pass through unchanged, and empty bodies remain empty so no media-type-derived header is sent. Defaults to "application/json".
Human-readable name for UI display (e.g. "Success (200)", "Not Found - Detailed (404)")
The OpenAPI example name (e.g. "default", "detailed", "empty"). By convention, the primary/original response for a status code is named "default".
Whether content was generated from a declared schema (see com.worldline.devview.networkmock.core.openapi.SchemaSynthesizer) rather than authored by the spec as an examples.<name>.externalValue file. false for every response variant sourced the normal way — this only ever flips to true for a status code that declared a schema but no examples of its own.
The HTTP status code this variant responds with