We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e2024 commit fcbd538Copy full SHA for fcbd538
packages/schema/src/language-server/validator/datasource-validator.ts
@@ -43,9 +43,8 @@ export default class DataSourceValidator implements AstValidator<DataSource> {
43
private validateUrl(ds: DataSource, accept: ValidationAcceptor) {
44
const url = ds.fields.find((f) => f.name === 'url');
45
if (!url) {
46
- accept('error', 'datasource must include a "url" field', {
47
- node: ds,
48
- });
+ // url field is optional for new versions of Prisma
+ return;
49
}
50
51
for (const fieldName of ['url', 'shadowDatabaseUrl']) {
0 commit comments