Skip to content

Remove nullable from typename for inputs and outputs #753

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 3 commits into from
Jun 27, 2025

Conversation

adityapatwardhan
Copy link
Member

PR Summary

This pull request introduces enhancements to handle nullable types more effectively in type names and includes corresponding updates to tests. The key changes involve adjustments to type name processing logic and the addition of test cases to validate the new behavior.

Improvements to nullable type handling:

  • src/Transform/TransformBase.cs: Updated the GetAdjustedTypename method to unwrap nullable types using Nullable.GetUnderlyingType, ensuring that type names are simplified correctly.
  • src/Transform/TransformBase.cs: Enhanced the FixUpTypeName method to handle generic nullable types by removing backticks and type arguments, further improving the readability of type names.

Test updates for nullable type handling:

PR Context

Fixes #545

@adityapatwardhan
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@adityapatwardhan adityapatwardhan changed the title Remove nullable Remove nullable from typename for inputs and outputs Jun 26, 2025
Copy link
Collaborator

@sdwheeler sdwheeler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adityapatwardhan
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@adityapatwardhan adityapatwardhan merged commit 35b887c into v2 Jun 27, 2025
8 checks passed
@adityapatwardhan adityapatwardhan deleted the RemoveNullable branch June 27, 2025 19:12
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.

2 participants