strapi-plugin-schemas-to-ts icon indicating copy to clipboard operation
strapi-plugin-schemas-to-ts copied to clipboard

User: missing fields

Open gregg-cbs opened this issue 1 year ago • 2 comments

This plugin generates a user.ts file in 'common/shemas-to-ts' -> which user is this? Admin user or User Permissions user?

The types seem to be missing fields like "password" and any other custom fields added to the user schema including relational fields.

Generated Types image

Schema image

Thanks!

gregg-cbs avatar Feb 22 '24 08:02 gregg-cbs

Hi @gregg-cbs it's the Permissions User, as the Admin User is not part of the Content Types. It's indeed lacking custom fields on the user. That's something I'm trying to fix here https://github.com/mancku/strapi-plugin-schemas-to-ts/issues/23

mancku avatar Mar 19 '24 15:03 mancku

Appreciate the response. This has the chance to be a great plugin for the community. Im hoping there will not be a need for it in the future and that strapi sorts their typing out.

gregg-cbs avatar Mar 20 '24 10:03 gregg-cbs