Skip to content

Faker templating wrapper is not compatible with SafeString #867

@255kb

Description

@255kb

Describe the bug

Faker templating wrapper is not compatible with SafeString.

To Reproduce

Use this broken templating in an inline body (second queryParam should be queryParamRaw):

{
  "{{queryParamRaw 'firstKey'}}": "{{faker (queryParam 'firstValue')}}"
}

We get the following error in the body: Error while serving the content: fakerName.split is not a function or its return value is not iterable.

Mockoon version:

All

OS / OS version:

All

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Done (ready for next release)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions