@graphprotocol/graph-cli 0.64.0-alpha-20231215212316-b850152 → 0.64.0
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/CHANGELOG.md +1 -1
- package/dist/validation/schema.js +4 -5
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -105,13 +105,13 @@ const parseSchema = (doc) => {
|
|
|
105
105
|
};
|
|
106
106
|
const validateEntityDirective = (def) => {
|
|
107
107
|
validateDebugger('Validating entity directive for %s', def?.name?.value);
|
|
108
|
-
return def.directives.find((directive) => directive.name.value === 'entity'
|
|
108
|
+
return def.directives.find((directive) => directive.name.value === 'entity')
|
|
109
109
|
? List()
|
|
110
110
|
: immutable_1.default.fromJS([
|
|
111
111
|
{
|
|
112
112
|
loc: def.loc,
|
|
113
113
|
entity: def.name.value,
|
|
114
|
-
message: `Defined without @entity
|
|
114
|
+
message: `Defined without @entity directive`,
|
|
115
115
|
},
|
|
116
116
|
]);
|
|
117
117
|
};
|
|
@@ -132,8 +132,7 @@ const validateEntityID = (def) => {
|
|
|
132
132
|
idField.type.type.kind === 'NamedType' &&
|
|
133
133
|
(idField.type.type.name.value === 'ID' ||
|
|
134
134
|
idField.type.type.name.value === 'Bytes' ||
|
|
135
|
-
idField.type.type.name.value === 'String'
|
|
136
|
-
idField.type.type.name.value === 'Int8')) {
|
|
135
|
+
idField.type.type.name.value === 'String')) {
|
|
137
136
|
validateDebugger('Entity %s has valid id field', def?.name?.value);
|
|
138
137
|
return List();
|
|
139
138
|
}
|
|
@@ -142,7 +141,7 @@ const validateEntityID = (def) => {
|
|
|
142
141
|
{
|
|
143
142
|
loc: idField.loc,
|
|
144
143
|
entity: def.name.value,
|
|
145
|
-
message: `Field 'id': Entity ids must be of type
|
|
144
|
+
message: `Field 'id': Entity ids must be of type Bytes! or String!`,
|
|
146
145
|
},
|
|
147
146
|
]);
|
|
148
147
|
};
|
package/oclif.manifest.json
CHANGED