1. Core Substitution Context
  2. Stub Subject

Core Substitution Context

Stub Subject

Variable substitution for the subject of the stub.

A stub subject in the Stubber System is a descriptive field that contains important identifying information about a stub. The subject is typically used to make it easy to recognize what the stub is about at a glance—such as the name of a person in a conversation, a customer name, or any relevant summary. The stub subject is a key part of the stub's metadata and can be used in various contexts, such as reporting, searching, and filtering stubs.

Usage

Use the substitution stub.subject in your action definitions to dynamically insert the subject of the stub.

Example

Action definition:

loading...

Substituted definition:

loading...

In this example, the ~~stub.subject substitution is replaced with the actual subject of the stub (e.g., "John Doe's Stub"). This allows you to include relevant context about the stub in your API calls or other tasks without hardcoding the subject, ensuring that your stubs remain flexible and maintainable.