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 cda6324 commit 807272dCopy full SHA for 807272d
packages/language/src/validators/datamodel-validator.ts
@@ -48,12 +48,14 @@ export default class DataModelValidator implements AstValidator<DataModel> {
48
const uniqueFields = allFields.filter((f) => f.attributes.find((attr) => attr.decl.ref?.name === '@unique'));
49
const modelLevelIds = getModelIdFields(dm);
50
const modelUniqueFields = getModelUniqueFields(dm);
51
+ const ignore = hasAttribute(dm, '@@ignore');
52
53
if (
54
idFields.length === 0 &&
55
modelLevelIds.length === 0 &&
56
uniqueFields.length === 0 &&
- modelUniqueFields.length === 0
57
+ modelUniqueFields.length === 0 &&
58
+ !ignore
59
) {
60
accept(
61
'error',
0 commit comments