Skip to content

Abp generate-proxy -t ng couldn't generate IReadonlyDirectory<> #23127

Closed
@mahmut-gundogdu

Description

@mahmut-gundogdu

Is there an existing issue for this?

  • I have searched the existing issues

Description

create simple dto, add IReadonlyDirectory<string,decimal> (or whatever in <...>) it creates buggy type

Image

Reproduction Steps

No response

Expected behavior

Image When I define IDictionary or IReadonlyDictionoary<...> is should create same or similar type without error. IDictionary works, IReadyOnlyDictionary not. { "name": "Balances", "jsonName": null, "type": "{System.String:System.Decimal}", "typeSimple": "{string:number}", "isRequired": false, "minLength": null, "maxLength": null, "minimum": null, "maximum": null, "regex": null }

Actual behavior

    {
      "name": "TokenBalances",
      "jsonName": null,
      "type": "[System.Collections.Generic.KeyValuePair<System.String,System.Decimal>]",
      "typeSimple": "[System.Collections.Generic.KeyValuePair<string,number>]",
      "isRequired": false,
      "minLength": null,
      "maxLength": null,
      "minimum": null,
      "maximum": null,
      "regex": null
    }
Image Image

Regression?

No response

Known Workarounds

use IDirectory instead of IReadonlyDirectory

Version

9.2

User Interface

Angular

Database Provider

None/Others

Tiered or separate authentication server

None (Default)

Operation System

macOS

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions