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

Schema validation errors broken since alpha 940 #605

Closed
janpio opened this issue Mar 22, 2020 · 1 comment
Closed

Schema validation errors broken since alpha 940 #605

janpio opened this issue Mar 22, 2020 · 1 comment
Assignees
Milestone

Comments

@janpio
Copy link
Member

janpio commented Mar 22, 2020

In alpha 940 the schema validation errors broke.

Before:

Error: Schema parsing	
error: Argument "value" is missing in attribute "@default".	
  -->  schema.prisma:228	
   | 	
227 |   user_email                   String                      @default("")	
228 |   user_email_valid             copp_users_user_email_valid @default()	
   | 	

Validation Error Count: 1

Now:

Error: Schema parsing
Error in data model: [DirectiveArgumentNotFound { argument_name: "value", directive_name: "default", span: Span { start: 7211, end: 7220 } }]

image

(Example is for a model that has a field with a @default() (Where there is no string inside which is invalid)

2.0.0-alpha.939...2.0.0-alpha.940

@Jolg42
Copy link
Member

Jolg42 commented Mar 23, 2020

Test added in prisma2 as well prisma/prisma@3857c5c

@janpio janpio added this to the Preview 25 milestone Mar 23, 2020
@janpio janpio closed this as completed Mar 23, 2020
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

3 participants