🌿 ✨ [Scheduled] Upgrade Fern CLI #150
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upgrading from
0.51.17
to0.51.36
- Changelog0.51.36
fix:
Type reference example generation now handles extends and base properties correctly, as well as in-lined Alias types.0.51.35
fix:
The cli will now respect examples withnull
values in OpenAPI specs. This will allow for null properties to show up when usingOpenAPI parser v2.
0.51.34
fix:
The IR generator now correctly handles exploded form parameters in the docs, ensuring that curl code snippetsaccurately reflect the expected request format. Previously, exploded parameters were not properly formatted in the documentation, which
could lead to incorrect API usage. This fix ensures that array parameters marked as "exploded" are properly expanded in the generated curl examples.
0.51.33
fix:
The OpenAPI parser v2 now handlesnull
values in examples, parses request and response bodies as unions if multiple, handles requiredproperties for global headers and improves upon example generation for APIs.
0.51.32
fix:
The Conjure Importer now handles replacing 'rid' types more safely by checking if an import alias starts with 'rid'.Previously, it would replace any 'rid' text with 'string', which could incorrectly modify import aliases that happened to start with 'rid'.
Now it only replaces 'rid' when it appears as a standalone type or generic parameter.
14 additional updates, see more
0.51.31
internal:
The IR migrator now recognizes that the PHP SDK generator requires IR version 55.0.51.30
fix:
The OpenAPI v2 parser now provides better naming and more robust payloads for examples.0.51.29
fix:
The images will be rendered to browser in the format of image ID that matches FileV2.It ensure images will be displayed properly in dev environment.
0.51.28
fix:
The IR generator now optimizes SDK generation by skipping automatic example generation when manual examples are provided.Previously, it would generate additional examples even when manual examples were specified for an operation.
This change improves generation performance by avoiding unnecessary example generation work.
0.51.27
fix:
The OpenAPI parser now optimizes discriminated union example generation by using the first successful variant.Previously, it would continue trying other variants even after finding a valid one. Now it stops after finding
the first valid variant, making example generation more efficient.
0.51.26
fix:
The OpenAPI parser now correctly generates examples for discriminated unions where a variant may itself be a union.Previously, if a discriminated union variant was itself a union (e.g.
{ type: "foo", value: { type: "bar" } }
),the example generation would skip. Now it recursively handles nested unions to generate valid examples.
0.51.25
fix:
Literal property values are now accepted as deep object query parameters. Previously, if a query parameter was a deep objectwith a literal property value (e.g.
{ type: "foo" }
), the CLI would reject it as too complex. Now literal values areallowed since they can be safely serialized.
0.51.24
fix:
The OpenAPI parser now parses path parameters that are present in the URL but not explicitly declared in the OpenAPI spec.Previously, if a path parameter was used in the URL (e.g.
/users/{userId}
) but not declared in theparameters
section,the parser would fail. Now it automatically adds these path parameters as required string parameters.
0.51.23
fix:
The CLI now considersfalse
andtrue
as keywords for the Java generators.0.51.22
fix:
The OpenAPI parser now ignores request bodies onGET
requests since Fern does not support that.This is not a breaking change, since previously the
fern check
would just fail.0.51.21
fix:
Thefern init
command now respects JSON formatting when parsing from an external URL.0.51.20
fix:
The OpenRPC parser now supports generating code snippets in the API Explorer.0.51.19
fix:
The OpenRPC parser now supports generating code snippets in the API Explorer.0.51.18
fix:
The docs will now display errors by default. Previously, errors were hidden by default and needed to be explicitlyenabled with
displayErrors: true
.