equinix-labs / metal-go

[Deprecated] Golang client for Equinix Metal
https://deploy.equinix.com/labs/equinix-sdk-go/
MIT License
3 stars 2 forks source link

Remove AuthTokenUser and AuthTokenProject #120

Closed ctreatma closed 5 months ago

ctreatma commented 1 year ago

We have an unnecessary AuthTokenUser model that is identical to the User model aside from the description. There is also an unnecessary AuthTokenProject model that is identical to the Project model aside from the description.

These models are generated because the AuthToken spec uses allOf to inject a description for the user and project properties for documentation purposes. This kind of structure is fine for redoc, but doesn't work well with code generators.

We need to find a different way to indicate that user tokens have a user and project tokens have a project that doesn't result in the creation of unnecessary duplicate models.

ctreatma commented 5 months ago

This repo is deprecated. This issue has been copied to https://github.com/equinix/equinix-sdk-go/issues/66