OAS 3.1.x supports a deprecated tag, which Fern correctly applies to the schema. However, in Response Examples, deprecated properties still appear even when they are not defined in the OAS definition.
This results in inaccurate examples that may mislead customers.
Information to Reproduce
CLI Version
"version": "0.45.0-rc52"
Actual Behavior
Expected Behavior
For properties where deprecated: true not to render in response examples.
API Definition (if relevant)
In Example 1 below:
The customAddress array is null, but the rendered response example still incorrectly includes categoryName.
The chainalysisIdentification array is not null but does not define a categoryName example, yet the rendered response example still incorrectly includes categoryName.
Describe the Bug
OAS 3.1.x supports a
deprecated
tag, which Fern correctly applies to the schema. However, in Response Examples, deprecated properties still appear even when they are not defined in the OAS definition.This results in inaccurate examples that may mislead customers.
Information to Reproduce
CLI Version
"version": "0.45.0-rc52"
Actual Behavior
Expected Behavior
For properties where
deprecated: true
not to render in response examples.API Definition (if relevant)
In
Example 1
below:customAddress
array isnull
, but the rendered response example still incorrectly includescategoryName
.chainalysisIdentification
array is notnull
but does not define acategoryName
example, yet the rendered response example still incorrectly includescategoryName
.