Open Closed

Proxy Generation - Skip Specific Enum #9737


User avatar
0
kkmy created

Hello,

Is it possible to declare some enums to be skipped when generating proxies? That is, I do not want to create frontend proxies for them when I type "generate-proxy".

Thanks.


2 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    There is no official or documented way to skip specific enums during Angular proxy generation with the ABP Framework. The generate-proxy command generates proxies for all enums used in your application services' DTOs and contracts. Selective exclusion of enums is not supported as a configuration or CLI option.

    Sources:

    • https://docs.abp.io/en/abp/latest/UI/Angular/Service-Proxies
    • https://abp.io/docs/latest/framework/ui/angular/service-proxies

    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The type of proxy generated by Angular comes from the backend application.

    The backend provides what the frontend generates.

    You can’t skip them, but you can change the generated Angular code.

    Thanks.

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20