-
Notifications
You must be signed in to change notification settings - Fork 196
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
Example body missing reference schema attributes #2536
Comments
This ticket has been labeled jira. A tracking ticket in Stoplight's Jira ( |
@janavMGX Could it be that your $ref'ed schema ( |
@weyert No, it only has properties defined like this: What I did try now is to move the $ref below the properties like this, and then it does show all of them. I'm not sure why that could be. Thanks!
|
Yeah, I have the same issue for when I removed the additionProperties: false in the referenced schema it started showing. I haven't figured out what the cause is but if I deep down in So there is something going wrong when merging allOf entries. |
Any update? |
@nawbc Not on my end. I have been busy working on work stuff. Might pick the sup at a later time. The code is not easy to understand for me so struggling a bit. Last month I tried to replace it with https://www.npmjs.com/package/@fastify/merge-json-schemas but not much luck so far. |
Same discussion: #2593 |
Context
We have revamped our API documentation and would like to use Stoplight as the new method of displaying the YAMLs.
Current Behavior
The example body in the Try it panel doesn't seem to correspond to the number of attributes. [https://www.mediagenix.tv/api-j7d2XD7sFqcdWGeS/docs/Latest_version/Content/Content%20API/Stoplight%20API%20Explorer.htm#/paths/series/post](Seen in Series > POST series)
When I view the YAML in Swagger UI, the example body is a lot longer. [https://www.mediagenix.tv/api-j7d2XD7sFqcdWGeS/docs/Latest_version/Content/Content%20API/Swagger%20UI%20API%20Explorer.htm](Seen in Series > POST series)
The schema used in this call:
The result example body:
Stoplight only seems to show the attributes directly defined on the schema and not the reference schema.
Expected Behavior
Stoplight should also show the full example body including the referenced schema.
The text was updated successfully, but these errors were encountered: