Forum Discussion

emil_fm's avatar
emil_fm
New Member
3 months ago

Stoplight Workspace Prism doesn't respect the faker config annotation

Hi there,

We need help with the mock server in our stoplight workspace.
The x-json-schema-faker configuration added to the OpenAPI specification doesn't seem to be working.

We want to restrict the number of items in an array generated by faker, so we added the following:

openapi: 3.1.0
x-json-schema-faker:
  min-items: 1
  max-items: 1

It works locally with a prism 5.10.0 installed from npm, but not in stoplight workspace.