Skip to content
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

(feature, csharp): Add customizable exception class names #4181

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

amckinney
Copy link
Contributor

This adds the ability to customize the base Exception and ApiException class names generated in the SDK. This is controlled via the following:

- name: fernapi/fern-csharp-sdk
  version: 0.9.0
  config:
    base-api-exception-class-name: AcmeApiException
    base-exception-class-name: AcmeException

Note that this also introduces a thin validation layer when we parse the custom configuration, which prevents users from specifying the same configuration value for both classes (which would inevitably create a conflict).

@amckinney amckinney requested a review from dsinghvi as a code owner August 1, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants