Response templating off
A refusal to make the values of a project’s generated responses dynamic, because dynamic values are template expressions and the project does not render them.
| Field | Value |
|---|---|
type |
https://mockhub.dev/problems/response-templating-off |
| Status | 409 |
What it means
Section titled “What it means”The project’s response templating is off, so a mock holding an expression such as {{ randomInt lower=1 upper=6 }} would send it as text. Nothing was changed. The review of what would change still answers, and says that templating is off.
Status
Section titled “Status”Always 409.
Where it comes from
Section titled “Where it comes from”From applying Vary response values, as a JSON run or a streamed one. Undoing the latest batch and returning to fixed values do not need templating.
| When | detail |
|---|---|
| The project’s templating is off | Making values dynamic writes response templates, and response templating is off for this project. Turn it on in the project settings first. |
This type carries no extension members.
{ "type": "https://mockhub.dev/problems/response-templating-off", "title": "Response templating is off", "status": 409, "detail": "Making values dynamic writes response templates, and response templating is off for this project. Turn it on in the project settings first."}What to do
Section titled “What to do”Turn on Response templating in the project’s Settings, which needs the Admin role, then review and apply again. The switch changes how every mock in the project reads its response, so check mocks whose bodies contain {{ first; a mock set to Serve as written is sent as written either way. See Set a project’s logging and templating.
Related
Section titled “Related”- Vary generated response values
- OpenAPI conflict, the refusal when the scope changed since the review
- Error types