Azure / autorest.go

Extension for AutoRest (https://github.com/Azure/autorest) that generates Go code
MIT License
65 stars 42 forks source link

tsp: omit unreferenced base types #1333

Closed jhendrixMSFT closed 1 month ago

jhendrixMSFT commented 1 month ago

Somewhat related to https://github.com/Azure/autorest.go/pull/1327

For tsp like model Foo extends Bar {...}, we fold Bar's properties into Foo. In such a case, if Bar isn't actually referenced, it would be ideal to omit it from the generated code.