-
Notifications
You must be signed in to change notification settings - Fork 221
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
Use formatting for examples in request/response fields #2372
Comments
@caitlinnew can you provide a spec and steps to reproduce this issue? |
I confirmed that this happens even for regular application/json content type. Take this spec:
The example on the component schema is what is used in the examples section in docs. And no formatting is applied. If the ref'd schema does not have examples defined, we do not display the examples in docs. So I'm guessing this is something we've never done and so this is kind of a feature request. |
Current Behavior
The issue we're hoping you all can help us with is that when we set existing models as data types for response and request fields the dev portal inlines the examples from those models in the docs without formatting. I've included some screenshots to show what I'm talking about. Also ideally we could toggle between the example we want when the model has two types of inputs.
How it looks now:

Expected Behavior
Ability to select which example is displayed
The text was updated successfully, but these errors were encountered: