-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Json example showing null in an array of string instead of properties with string values. #2273
Comments
Can you share the corresponding OAS to reproduce? |
Hello @adamaltman / @AlexVarchuk Please find below screenshots of OAS to reproduce this issue. Screenshots:
|
Hello @adamaltman / @AlexVarchuk Any updates on the above issues? |
Hello @adamaltman / @AlexVarchuk / @joshprice Is there an update on the above issue? |
I'm currently facing the same issue, anyone have any idea what might the cause of the bug? |
After debugging on my own, I found the problem in Before this line, I already checked that this.schema and parser.spec have the correct data. However, after the creation of default, it doesn't have the correct value. The value is processed by Here’s the breakdown of what I observed:
the last object of the value shouldn't be undefined, it should contains another object It seems the issue lies within how |
you just need to set the value of redoc configuration |
Describe the bug
We're experiencing issues with Redocly.
Json example showing null in an array of string instead of properties with string values.
We're using the same code and swagger schema everywhere, but it's not working in some places while getting json example from [FromBody] parameter of API.
As shown in the screenshots.
Expected behavior
Screenshots
Additional context
We have used Swashbuckle.AspNetCore.ReDoc 6.4.0.
Could you please help with this?
The text was updated successfully, but these errors were encountered: