Skip to content
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

fix: @id always optional for default values #9

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

jsbrain
Copy link

@jsbrain jsbrain commented May 28, 2022

@id field will only be optional for Int fields with autoincrement() which results in any other @id field with default to not be optional in the input value.

This doesn't really make any sense as if there's any @default value, the @id field should always be optional for the input type.

@@ -1,6 +1,6 @@
{
"name": "prisma-typebox-generator",
"version": "2.0.2",
"name": "jsbrain-prisma-typebox-generator",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please dont change this unless you want to fork it and create different distribution

Copy link
Owner

@adeyahya adeyahya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please dont rename package name

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

Successfully merging this pull request may close these issues.

2 participants