[Bug] Example of list not being displayed
Describe the bug
We are using a list as example, which is a valid JSON. But the documentation doesn't show that example.
To reproduce
Steps to reproduce the behavior:
- Generate an openapi spec with the following item (I believe the fact that it's a list is the issue. Other fields work well.
"street_address_alias": {
"items": {
"type": "string"
},
"type": "array",
"description": "Other known street addresses for the property. When searching for a property\nby address, these aliases will also be matched.",
"example": [
"123 Main St",
"125, Main Street"
]
},
- Generate the doc
- The example holds the key's name instead of the example.
Expected behavior
I'd expect to see ["123 Main St", "125, Main Street"] in place of street_address_alias in there.
Screenshots
On the left, the description was pulled. But on the right, the example wasn't.
Version
Fern Version: 0.18.0
Additional context
Add any other context about the problem here.
@nlassaux would you be able to run fern upgrade and regenerate your docs? This should be fixed!
@armandobelardo I think I'm still seeing the issue. I'm now on 0.21.0:
Upgrading from 0.19.31 → 0.21.0
I tried to hard refresh too. Could it be on a RC version, like 0.22.0?
@armandobelardo Just tried 0.23.0, I still see the same issue