ServiceStack / Issues

Issue Tracker for the commercial versions of ServiceStack
11 stars 8 forks source link

x Typescript Dto Generation wrong for classes with base class #804

Closed Cynicszm closed 6 months ago

Cynicszm commented 6 months ago

Describe the issue

We are using x version 8.0.0 with x ts and the generated dtos are wrong for classes with a base class.

Reproduction

  1. x new mvc-bootstrap
  2. build
  3. x ts
  4. open generated dtos
  5. check classes with a base class e.g. export class Booking extends AuditBase
  6. Generated Booking class includes all the AuditBase properties instead of just the Booking properties

Expected behavior

I would expect any class with a base to be generated as

export ClassName extends BaseClass { Only ClassName properties }

System Info

.NET 8, x version 8.0.0

Additional context

No response

Validations

mythz commented 6 months ago

Thanks for reporting, this issue has already been resolved in the Pre Release packages.