abpframework / abpframework/abp
Angular proxy generation: nullable array is generated as non-nullable
@sumeyyeKurtulus is already working on this.
Since Apr 29, 2025.
- Dominant language
- C#
- Stars
- 14.4k
- Forks
- 3.7k
- Avg merge
- 15h 32m
- Merged PRs (30d)
- 106
Description
Is there an existing issue for this?
- I have searched the existing issues
Description
All nullable arrays are generated as non-nullable in the javascript proxy.
Welcome to a new episode of proxy generation bugs ;-) Given the abundant bugs in this area, IMHO the abp team should throughly review the proxy generation system.
Reproduction Steps
public class MyDto {
public int[]? IntArray { get; set; }
public string[]? StringArray { get; set; }
}
> abp help
ABP CLI 9.2.0-rc.2
> abp generate-proxy -t ng --entry-point .
export interface MyDto {
intArray: number[]; // should be nullable
stringArray: number[]; // should be nullable
}
Expected behavior
Generate properties with correct nullablility.
Actual behavior
All nullable array properties are generated as non-nullable.
Regression?
Possibly.
Known Workarounds
No response
Version
9.2.0-rc2
User Interface
Angular
Database Provider
None/Others
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
https://github.com/abpframework/abp/issues/21995
https://github.com/abpframework/abp/pull/22037
https://github.com/abpframework/abp/issues/22118
https://github.com/abpframework/abp/pull/22120
https://github.com/abpframework/abp/issues/22132
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.