Skip to content

🌿 ✨ [Scheduled] Upgrade Fern CLI #150

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

Merged
merged 1 commit into from
Feb 10, 2025
Merged

🌿 ✨ [Scheduled] Upgrade Fern CLI #150

merged 1 commit into from
Feb 10, 2025

Conversation

fern-api[bot]
Copy link
Contributor

@fern-api fern-api bot commented Feb 10, 2025

Upgrading from 0.51.17 to 0.51.36 - Changelog

    0.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 with null values in OpenAPI specs. This will allow for null properties to show up when using
    OpenAPI parser v2.

  • 0.51.34

  • fix: The IR generator now correctly handles exploded form parameters in the docs, ensuring that curl code snippets
    accurately 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 handles null values in examples, parses request and response bodies as unions if multiple, handles required
    properties 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 object
    with a literal property value (e.g. { type: "foo" }), the CLI would reject it as too complex. Now literal values are
    allowed 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 the parameters section,
    the parser would fail. Now it automatically adds these path parameters as required string parameters.

  • 0.51.23

  • fix: The CLI now considers false and true as keywords for the Java generators.

  • 0.51.22

  • fix: The OpenAPI parser now ignores request bodies on GET 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: The fern 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 explicitly
    enabled with displayErrors: true.

@fern-api fern-api bot requested a review from a team as a code owner February 10, 2025 00:05
@Atul-Butola Atul-Butola merged commit 3d34607 into main Feb 10, 2025
2 of 3 checks passed
@Atul-Butola Atul-Butola deleted the fern/update/cli branch February 10, 2025 09:54
fern-support added a commit that referenced this pull request Feb 13, 2025
iarthstar pushed a commit that referenced this pull request Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant