2.1.0

(feat): Pass in custom pager context to the custom pager factory. The context contains the send request method, initial HTTP request, client options, and request options. SDK authors can improve their custom pagination implementation with this context available to them.

2.0.3

(fix): Mockserver tests were generated based on the endpoint name being tested. When multiple endpoints have the same name, they would override each other, resulting in only one of them being tested. Mockserver tests are now namespaced and written to the filesystem following the same structure as the generated endpoints are.

(fix): Update the type referencing logic to take into account the current namespace, other namespaces, and more scenarios where it could conflicts.

2.0.2

(fix): Improve auto-pagination logic to consider empty strings in response as null cursors and stop paging.

2.0.1

(fix): Fix a bug where strings with special characters would not be properly escaped when converted to C# strings.

2.0.0

(chore): The following configuration names have changed, but the old names will continue to work.

  • experimental-enable-forward-compatible-enums is now enable-forward-compatible-enums
  • experimental-additional-properties is now additional-properties

(feat): This release changes the defaults for the following custom configuration in generators.yml.

OptionBeforeNow
additional-propertiesfalsetrue
enable-forward-compatible-enumsfalsetrue
generate-mock-server-testsfalsetrue
inline-path-parametersfalsetrue
simplify-object-dictionariestruefalse
use-discriminated-unionsfalsetrue

To avoid breaking changes, explicitly set the options above with the Before values in the config of your generator in generators.yml.

1.18.1

(fix): Add [Serializable] attribute to generated schema, request, and error classes. This will make it easier for instances of these classes to be stored in places like Exception.Data.

1.18.0

(feat): Add support for HTTP HEAD method

1.17.6

(fix): Fix generated pagination endpoints that include path parameters.

1.17.1

(chore): Self hosted github user defaults to fern-api[bot].

1.17.0

(feat): Added support for pushing to GitHub.