-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AdditionalItems never returned in response #2519
Labels
Comments
7 tasks
@brendarearden So I have discovered that this is not a Prism bug at all, and in fact is a bug in json-schema-faker. I unfortunately don't have time currently to tackle this now but I hope this is helpful! |
specifically, the issue is in prism/packages/http/src/mocker/generator/JSONSchema.ts, in
JSONSchemaFaker.generate doesn't include additionalItems in its result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
While resolving readOnly and writeOnly objects being handled correctly for array, it was discovered that additionalItems are never returned in the response.
Current Behavior
original comment about behavior here
additionalItems are not showing in mocked response
Expected Behavior
All required fields should show in the mocked response
Possible Workaround/Solution
Steps to Reproduce
Prism mock using the following spec:
status and ticket do not show in the mocked response
Environment
The text was updated successfully, but these errors were encountered: