Skip to main content

Type Alias: WiremockMappingSource

type WiremockMappingSource =
| WiremockFileSource
| {
json: | string
| WiremockStubMapping
| {
mappings: readonly WiremockStubMapping[];
};
};

Defined in: src/sources.ts:51

A file source, or inline JSON: a string, a stub or { mappings: [...] }.

Union Members​

WiremockFileSource


Type Literal​

{
json: | string
| WiremockStubMapping
| {
mappings: readonly WiremockStubMapping[];
};
}
NameTypeDescriptionDefined in
json| string | WiremockStubMapping | { mappings: readonly WiremockStubMapping[]; }A JSON string – copied verbatim – or an object, serialised.src/sources.ts:55

See​

Registering stubs