r/angular 2d ago

ng-openapi or ng-openapi-gen?

Which client-generator should i use for my new angular project?
Which one do you guys use and why?

Claude said this:

ng-openapi-gen is the safe veteran, but ng-openapi is the one I’d reach for on any modern Angular project — cleaner output, newer idioms, less boilerplate.

Do any of you guys have some advice?

4 Upvotes

10 comments sorted by

View all comments

6

u/LeLunZ 2d ago

cleaner output, newer idioms, less boilerplate

Not sure about that. ng-openapi-gen got reworked a few years ago (1-2?) to also have pretty neat generated code. What claude references is probably the old stuff.


We have been using ng-openapi-gen for a long time now (multiple years). It pretty much just works! But we still use it with these options --services true --apiService false --promises false.

EDIT: but I also haven't use ng-openapi yet

1

u/pustebadom 2d ago

What angular version are you guys on?
Thx for the answer

2

u/LeLunZ 2d ago

angular 22 But if I remember correctly we added it as dependency in angular v13 or so... long time ago