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

Angular - Fix proxy generation problems for the nullable enum types in method signature #22269

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

kostaspro
Copy link

Description

Fix proxy generation problems for the enum types in method signature

Checklist

  • I fully tested it as developer / designer and created unit / integration tests
  • I documented it (or no need to document or I will create a separate documentation issue)

How to test it?

public enum AddressType { One = 1, Two = 2 } public class SearchAppService : IApplicationService { public async Task GetAddressHintAsync(string searchString, AddressType? addressType) { } }

Expected result

getAddressHint = (searchString: string, addressType: AddressType, config?: Partial) => this.restService.request({ method: 'GET', url: '/api/search/address-hint', params: { searchString, addressType }, }, { apiName: this.apiName,...config });

Current result

getAddressHint = (searchString: string, addressType: enum, config?: Partial) => this.restService.request({ method: 'GET', url: '/api/search/address-hint', params: { searchString, addressType }, }, { apiName: this.apiName,...config });

@CLAassistant
Copy link

CLAassistant commented Mar 4, 2025

CLA assistant check
All committers have signed the CLA.

@kostaspro kostaspro changed the title Angular - Fix proxy generation problems for the enum types in method signature Angular - Fix proxy generation problems for the nullable enum types in method signature Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants