fern-api / fern

Input OpenAPI. Output SDKs and Docs.
https://buildwithfern.com
Apache License 2.0
2.69k stars 151 forks source link

[Bug][OpenAPI] Incorrect placeholder displayed for `null` values in a Response Example #5245

Open nateKlaux opened 11 hours ago

nateKlaux commented 11 hours ago

Describe the Bug

In Response Examples, when a property's example value is set to null, Fern displays a generic placeholder value instead. This results in misleading examples and will confuse customers.

Information to Reproduce

CLI Version

"version": "0.45.0-rc52"

Actual Behavior

bug

Expected Behavior

expected

API Definition (if relevant)

              examples: 
                mature-response-example:
                  summary: Mature & emerging example
                  value:
                    updatedAt: null
                    asset: "BTC"
                    assetId: null
                    network: "BITCOIN"
                    transferReference: "9f318afbad2a183f97750bc51a75b582ad8f9e9cbfb50401148857ca27cde10c:17A16QmavnUfCW11DAApiJxp7ARnxN5pGX"
                    tx: null
                    idx: null
                    usdAmount: null
                    assetAmount: null
                    timestamp: null
                    outputAddress: null
                    externalId: "393905a7-bb96-394b-9e20-3645298c1079"