Skip to content

Enum value documentations are missing in generated Prisma schema #1389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
trancong12102 opened this issue Apr 30, 2024 · 0 comments
Closed

Comments

@trancong12102
Copy link
Contributor

Description and expected behavior
The generated Prisma schema is missing documentation for enum values.

Environment (please complete the following information):

  • ZenStack version: 2.0.1
  • Prisma version: 5.13.0
  • Database type: postgres

Additional context
schema.zmodel

/// UserRole Documentation
enum UserRole {
  /// User role documentation 1
  /// User role documentation 2
  USER
  /// Admin role documentation
  ADMIN
  MODERATOR
}

schema.prisma

/// UserRole Documentation
enum UserRole {
  USER
  ADMIN
  MODERATOR
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant