Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit 94b69b7

Browse files
ymc9Copilot
andauthored
Update packages/language/src/validators/datasource-validator.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 25d11e0 commit 94b69b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/language/src/validators/datasource-validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default class DataSourceValidator implements AstValidator<DataSource> {
8484
// if no explicit default schema is specified, and there are models or enums without '@@schema',
8585
// "public" is implicitly used, so it must be included in the "schemas" array
8686
const hasImplicitPublicSchema = ds.$container.declarations.some(
87-
(d) => (isDataModel(d) || isEnum(d)) && !d.attributes.some((a) => a.decl.$refText === 'schema'),
87+
(d) => (isDataModel(d) || isEnum(d)) && !d.attributes.some((a) => a.decl.$refText === '@@schema'),
8888
);
8989
if (hasImplicitPublicSchema && !schemasArray.includes('public')) {
9090
accept('error', `"public" must be included in the "schemas" array`, {

0 commit comments

Comments
 (0)