@zenstackhq/language 3.0.0-beta.26 → 3.0.0-beta.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -7279,6 +7279,7 @@ function registerValidationChecks(services) {
7279
7279
  const checks = {
7280
7280
  Model: validator.checkModel,
7281
7281
  DataSource: validator.checkDataSource,
7282
+ GeneratorDecl: validator.checkGenerator,
7282
7283
  DataModel: validator.checkDataModel,
7283
7284
  TypeDef: validator.checkTypeDef,
7284
7285
  Enum: validator.checkEnum,
@@ -7304,6 +7305,11 @@ var ZModelValidator = class {
7304
7305
  checkDataSource(node, accept) {
7305
7306
  new DataSourceValidator().validate(node, accept);
7306
7307
  }
7308
+ checkGenerator(node, accept) {
7309
+ accept("warning", '"generator" is not used by ZenStack and should be removed.', {
7310
+ node
7311
+ });
7312
+ }
7307
7313
  checkDataModel(node, accept) {
7308
7314
  new DataModelValidator().validate(node, accept);
7309
7315
  }