Thank you for your swift answer.
This was true until…today. We’ve just been able to contribute back to the original project removing a dependency that was a bit problematic, so Prism right now is using the official project again.
Ok. I pulled in the latest commit in my fork.
Correct. This keyword does not exist nor in the OpenAPI’s JSON Schema Version they use (draft4 for OAS2, draft 5 for OAS3) nor in any other newer draft that hopefully Open API 3.1 will effectively use (draft8?) — therefore we do not support it.
Correct. The faker keyword is not a standard keyword supported by the OpenAPI JSON Schema.
However, the OpenAPI spec allows extensions, which on it’s turn, JSON-schema-faker supports, as seen in this issue.
To get this working within Prism, you would only need to extend JSON-schema-faker in
JSONSchema.ts to use Faker.js
I created a PR with the necessary changes to get faker support up and running. I propose we continue this conversation there.