@graphcms/validation
Advanced tools
Comparing version 1.0.16 to 1.0.17
var yup = require('yup'); | ||
var graphQlTypeNames = ['Int','Float','String','Boolean','ID']; | ||
var reservedModelNames = ['User']; | ||
var reservedFieldNames = ['ID','createdAt','updatedAt']; | ||
var reservedEnumerationNames = ['Status']; | ||
var graphQlTypeNames = ['int','float','string','boolean','id','enum','interface', | ||
'union','fragment','type','datetime','json','mutation','scalar','query','input']; | ||
var reservedModelNames = ['user']; | ||
var reservedFieldNames = ['id','createdat','updatedat']; | ||
var reservedEnumerationNames = ['status']; | ||
var reservedModelApiIds = reservedModelNames.concat(graphQlTypeNames); | ||
@@ -13,3 +14,3 @@ var reservedFieldApiIds = reservedFieldNames.concat(graphQlTypeNames); | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
return value ? reservedWord === value.toLowerCase() : false; | ||
}); | ||
@@ -32,3 +33,3 @@ }).matches(/^[A-Z][a-zA-Z0-9]*$/, 'Api Id may only start with a capital letter and contain only alphanumeric characters.'); | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
return value ? reservedWord === value.toLowerCase() : false; | ||
}); | ||
@@ -56,3 +57,3 @@ }).matches(/^[a-z][a-zA-Z0-9]*$/, 'Field Api ID may only start with a lowercase letter and contain alphanumeric characters.'); | ||
return !reservedEnumerationApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
return value ? reservedWord === value.toLowerCase() : false; | ||
}); | ||
@@ -59,0 +60,0 @@ }).matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An Api Id may only start with a capital letter and contain only alphanumeric characters and underscores.'); |
import { string, array } from 'yup'; | ||
var graphQlTypeNames = ['Int','Float','String','Boolean','ID']; | ||
var reservedModelNames = ['User']; | ||
var reservedFieldNames = ['ID','createdAt','updatedAt']; | ||
var reservedEnumerationNames = ['Status']; | ||
var graphQlTypeNames = ['int','float','string','boolean','id','enum','interface', | ||
'union','fragment','type','datetime','json','mutation','scalar','query','input']; | ||
var reservedModelNames = ['user']; | ||
var reservedFieldNames = ['id','createdat','updatedat']; | ||
var reservedEnumerationNames = ['status']; | ||
var reservedModelApiIds = reservedModelNames.concat(graphQlTypeNames); | ||
@@ -12,7 +13,7 @@ var reservedFieldApiIds = reservedFieldNames.concat(graphQlTypeNames); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLEdBQUEsQ0FBSSxtQkFBbUIsQ0FBQyxNQUFPLFFBQVMsU0FBVSxVQUFXO0FBQzdELEdBQUEsQ0FBSSxxQkFBcUIsQ0FBQztBQUMxQixHQUFBLENBQUkscUJBQXFCLENBQUMsS0FBTSxZQUFhO0FBQzdDLEdBQUEsQ0FBSSwyQkFBMkIsQ0FBQztBQUNoQyxPQUFPLEdBQUEsQ0FBSSxzQkFBc0Isa0JBQUEsQ0FBbUIsTUFBbkIsQ0FBMEI7QUFDM0QsT0FBTyxHQUFBLENBQUksc0JBQXNCLGtCQUFBLENBQW1CLE1BQW5CLENBQTBCO0FBQzNELE9BQU8sR0FBQSxDQUFJLDRCQUE0Qix3QkFBQSxDQUF5QixNQUF6QixDQUFnQztBQU52RSIsImZpbGUiOiJyZXNlcnZlZFdvcmRzLnRzKG9yaWdpbmFsKSIsInNvdXJjZXNDb250ZW50IjpbInZhciBncmFwaFFsVHlwZU5hbWVzID0gWydJbnQnLCAnRmxvYXQnLCAnU3RyaW5nJywgJ0Jvb2xlYW4nLCAnSUQnXTtcclxudmFyIHJlc2VydmVkTW9kZWxOYW1lcyA9IFsnVXNlciddO1xyXG52YXIgcmVzZXJ2ZWRGaWVsZE5hbWVzID0gWydJRCcsICdjcmVhdGVkQXQnLCAndXBkYXRlZEF0J107XHJcbnZhciByZXNlcnZlZEVudW1lcmF0aW9uTmFtZXMgPSBbJ1N0YXR1cyddO1xy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ZXMgPSBbXHJcbiAgICAnaW50JyxcclxuICAgICdmbG9hdCcsXHJcbiAgICAnc3RyaW5nJyxcclxuICAgICdib29sZWFuJyxcclxuICAgICdpZCcsXHJcbiAgICAnZW51bScsXHJcbiAgICAnaW50ZXJmYWNlJyxcclxuICAgICd1bmlvbicsXHJcbiAgICAnZnJhZ21lbnQnLFxyXG4gICAgJ3R5cGUnLFxyXG4gICAgJ2RhdGV0aW1lJyxcclxuICAgICdqc29uJyxcclxuICAgICdtdXRhdGlvbicsXHJcbiAgICAnc2NhbGFyJyxcclxuICAgICdxdWVyeScsXHJcbiAgICAnaW5wdXQnLFxyXG5dO1xyXG52YXIgcmVzZXJ2ZWRNb2RlbE5hbWVzID0gWyd1c2VyJ107XHJcbnZhciByZXNlcnZlZEZpZWxkTmFtZXMgPSBbJ2lkJywgJ2NyZWF0ZWRhdCcsICd1cGRhdGVkYXQnXTtcclxudmFyIHJlc2VydmVkRW51bWVyYXRpb25OYW1lcyA9IFsnc3RhdHVzJ107XHJcbmV4cG9ydCB2YXIgcmVzZXJ2ZWRNb2RlbEFwaUlkcyA9IHJlc2VydmVkTW9kZWxOYW1lcy5jb25jYXQoZ3JhcGhRbFR5cGVOYW1lcyk7XHJcbmV4cG9ydCB2YXIgcmVzZXJ2ZWRGaWVsZEFwaUlkcyA9IHJlc2VydmVkRmllbGROYW1lcy5jb25jYXQoZ3JhcGhRbFR5cGVOYW1lcyk7XHJcbmV4cG9ydCB2YXIgcmVzZXJ2ZWRFbnVtZXJhdGlvbkFwaUlkcyA9IHJlc2VydmVkRW51bWVyYXRpb25OYW1lcy5jb25jYXQoZ3JhcGhRbFR5cGVOYW1lcyk7XHJcbiJdfQ== | ||
var apiId = string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(64, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
return value ? reservedWord === value.toLowerCase() : false; | ||
}); | ||
@@ -24,3 +25,3 @@ }).matches(/^[A-Z][a-zA-Z0-9]*$/, 'Api Id may only start with a capital letter and contain only alphanumeric characters.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwsMkJBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9ULG9CQUFvQix5REFBQSxDQUFBLENBQUEsQ0FBNEQscUJBQXFCLFVBQVUsT0FBTztJQUFFLE9BQU8sQ0FBQyxtQkFBQSxDQUFvQixJQUFwQixDQUF5QixVQUFVLGNBQWM7UUFBRSxPQUFPLFlBQUEsQ0FBQSxHQUFBLENBQWlCO0lBQXJOO0FBQUEsRUFQbUIsQ0FRZCxPQVJjLENBUU4sdUJBQXVCO0FBU3BDLE9BQU8sR0FBQSxDQUFJLGNBQWMsR0FBQSxDQUNwQixNQURvQixFQUFBLENBRXBCLFNBRm9CLENBRVYsd0ZBRlUsQ0FHcEIsTUFIb0IsQ0FHYixLQUhhLENBSXBCLFFBSm9CLENBSVgsZ0RBSlcsQ0FLcEIsSUFMb0IsQ0FLZjtBQVFWLE9BQU8sR0FBQSxDQUFJLGNBQWMsR0FBQSxDQUNwQixNQURvQixFQUFBLENBRXBCLFNBRm9CLENBRVYsd0ZBRlUsQ0FHcEIs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IgYW5kIFwibnVsbFwiIGludG8gZW1wdHkgc3RyaW5nc1xyXG4gKi9cclxuZXhwb3J0IHZhciBkZXNjcmlwdGlvbiA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuIl19 | ||
@@ -36,3 +37,3 @@ | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
return value ? reservedWord === value.toLowerCase() : false; | ||
}); | ||
@@ -49,3 +50,3 @@ }).matches(/^[a-z][a-zA-Z0-9]*$/, 'Field Api ID may only start with a lowercase letter and contain alphanumeric characters.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwseUNBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9ULG9CQUFvQixtREFBQSxDQUFBLENBQUEsQ0FBc0QscUJBQXFCLFVBQVUsT0FBTztJQUFFLE9BQU8sQ0FBQyxtQkFBQSxDQUFvQixJQUFwQixDQUF5QixVQUFVLGNBQWM7UUFBRSxPQUFPLFlBQUEsQ0FBQSxHQUFBLENBQWlCO0lBQS9NO0FBQUE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nN0cmluZygpICAgICAgICAgIC0+IEVuc3VyZXMgdGhhdCBvbmx5IHN0cmluZ3MgY2FuIGJlIHZhbGlkYXRlZCB3aXRoIHN1Y2Nlc3NcclxuICogLnR5cGVFcnJvcig6c3RyaW5nKS0+IEVuc3VyZXMgdGhhdCB0eXBlcyBvdGhlciB0aGFuIHN0cmluZyByZXR1cm4gZmFsc2VcclxuICogLmVuc3VyZSgpICAgICAgICAgIC0+IFRyYW5zZm9ybXMgdGhlIHZhbHVlcyBcInVuZGVmaW5lZFwiIGFuZCBcIm51bGxcIiBpbnRvIGVtcHR5IHN0cmluZ3NcclxuICovXHJcbmV4cG9ydCB2YXIgZGVzY3JpcHRpb24gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbiJdfQ== | ||
@@ -61,3 +62,3 @@ | ||
return !reservedEnumerationApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
return value ? reservedWord === value.toLowerCase() : false; | ||
}); | ||
@@ -70,3 +71,3 @@ }).matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An Api Id may only start with a capital letter and contain only alphanumeric characters and underscores.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudW1lcmF0aW9uLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxnQ0FBaUM7QUFZMUMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEt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N0cmluZ1wiIScpXHJcbiAgICAucmVxdWlyZWQoJ0EgZW51bWVyYXRpb24gdmFsdWUgY2FuIG5vdCBiZSBlbXB0eS4nKVxyXG4gICAgLnN0cmljdCh0cnVlKVxyXG4gICAgLm1pbigxLCAnQW4gZW51bWVyYXRpb24gdmFsdWUgbXVzdCBiZSBhdCBsZWFzdCBvbmUgY2hhcmFjdGVyIGxvbmcuJylcclxuICAgIC5tYXgoMTkxLCAnQW4gZW51bWVyYXRpb24gdmFsdWUgbWF5IG5vdCBleGNlZWQgMTkxIGNoYXJhY3RlcnMuJylcclxuICAgIC5tYXRjaGVzKC9eW0EtWl1bYS16QS1aMC05X10qJC8sICdBbiBlbnVtZXJhdGlvbiB2YWx1ZSBtYXkgb25seSBzdGFydCB3aXRoIGFuIHVwcGVyY2FzZSBsZXR0ZXIgYW5kIGNvbnRhaW4gYWxwaGFudW1lcmljIGNoYXJhY3RlcnMgYW5kIHVuZGVyc2NvcmVzIG9ubHkuJyk7XHJcbi8qKlxyXG4gKiBDb252ZW5pZW5jZSBzY2hlbWEgZm9yIHZhbGlkYXRpbmcgdGhlIHZhbHVlcyBmaWVsZCBvZiBhbiBlbnVtLlxyXG4gKi9cclxuZXhwb3J0IHZhciB2YWx1ZXMgPSB5dXBcclxuICAgIC5hcnJheSgpXHJcbiAgICAub2YodmFsdWUpXHJcbiAgICAucmVxdWlyZWQoJ0FuIGVudW1lcmF0aW9uIG11c3QgY29udGFpbiBhdCBsZWFzdCBvbmUgdmFsdWUuJyk7XHJcbiJdfQ== | ||
@@ -73,0 +74,0 @@ |
@@ -7,6 +7,7 @@ (function (global, factory) { | ||
var graphQlTypeNames = ['Int','Float','String','Boolean','ID']; | ||
var reservedModelNames = ['User']; | ||
var reservedFieldNames = ['ID','createdAt','updatedAt']; | ||
var reservedEnumerationNames = ['Status']; | ||
var graphQlTypeNames = ['int','float','string','boolean','id','enum','interface', | ||
'union','fragment','type','datetime','json','mutation','scalar','query','input']; | ||
var reservedModelNames = ['user']; | ||
var reservedFieldNames = ['id','createdat','updatedat']; | ||
var reservedEnumerationNames = ['status']; | ||
var reservedModelApiIds = reservedModelNames.concat(graphQlTypeNames); | ||
@@ -17,7 +18,7 @@ var reservedFieldApiIds = reservedFieldNames.concat(graphQlTypeNames); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlc2VydmVkV29yZHMudHMob3JpZ2luYWwpIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLEdBQUEsQ0FBSSxtQkFBbUIsQ0FBQyxNQUFPLFFBQVMsU0FBVSxVQUFXO0FBQzdELEdBQUEsQ0FBSSxxQkFBcUIsQ0FBQztBQUMxQixHQUFBLENBQUkscUJBQXFCLENBQUMsS0FBTSxZQUFhO0FBQzdDLEdBQUEsQ0FBSSwyQkFBMkIsQ0FBQztBQUNoQyxPQUFPLEdBQUEsQ0FBSSxzQkFBc0Isa0JBQUEsQ0FBbUIsTUFBbkIsQ0FBMEI7QUFDM0QsT0FBTyxHQUFBLENBQUksc0JBQXNCLGtCQUFBLENBQW1CLE1BQW5CLENBQTBCO0FBQzNELE9BQU8sR0FBQSxDQUFJLDRCQUE0Qix3QkFBQSxDQUF5QixNQUF6QixDQUFnQztBQU52RSIsImZpbGUiOiJyZXNlcnZlZFdvcmRzLnRzKG9yaWdpbmFsKSIsInNvdXJjZXNDb250ZW50IjpbInZhciBncmFwaFFsVHlwZU5hbWVzID0gWydJbnQnLCAnRmxvYXQnLCAnU3RyaW5nJywgJ0Jvb2xlYW4nLCAnSUQnXTtcclxudmFyIHJlc2VydmVkTW9kZWxOYW1lcyA9IFsnVXNlciddO1xyXG52YXIgcmVzZXJ2ZWRGaWVsZE5hbWVzID0gWydJRCcsICdjcmVhdGVkQXQnLCAndXBkYXRlZEF0J107XHJcbnZhciByZXNlcnZlZEVudW1lcmF0aW9uTmFtZXMgPSBbJ1N0YXR1cyddO1xyXG5leHBvcnQgdmF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AgICAnaW50JyxcclxuICAgICdmbG9hdCcsXHJcbiAgICAnc3RyaW5nJyxcclxuICAgICdib29sZWFuJyxcclxuICAgICdpZCcsXHJcbiAgICAnZW51bScsXHJcbiAgICAnaW50ZXJmYWNlJyxcclxuICAgICd1bmlvbicsXHJcbiAgICAnZnJhZ21lbnQnLFxyXG4gICAgJ3R5cGUnLFxyXG4gICAgJ2RhdGV0aW1lJyxcclxuICAgICdqc29uJyxcclxuICAgICdtdXRhdGlvbicsXHJcbiAgICAnc2NhbGFyJyxcclxuICAgICdxdWVyeScsXHJcbiAgICAnaW5wdXQnLFxyXG5dO1xyXG52YXIgcmVzZXJ2ZWRNb2RlbE5hbWVzID0gWyd1c2VyJ107XHJcbnZhciByZXNlcnZlZEZpZWxkTmFtZXMgPSBbJ2lkJywgJ2NyZWF0ZWRhdCcsICd1cGRhdGVkYXQnXTtcclxudmFyIHJlc2VydmVkRW51bWVyYXRpb25OYW1lcyA9IFsnc3RhdHVzJ107XHJcbmV4cG9ydCB2YXIgcmVzZXJ2ZWRNb2RlbEFwaUlkcyA9IHJlc2VydmVkTW9kZWxOYW1lcy5jb25jYXQoZ3JhcGhRbFR5cGVOYW1lcyk7XHJcbmV4cG9ydCB2YXIgcmVzZXJ2ZWRGaWVsZEFwaUlkcyA9IHJlc2VydmVkRmllbGROYW1lcy5jb25jYXQoZ3JhcGhRbFR5cGVOYW1lcyk7XHJcbmV4cG9ydCB2YXIgcmVzZXJ2ZWRFbnVtZXJhdGlvbkFwaUlkcyA9IHJlc2VydmVkRW51bWVyYXRpb25OYW1lcy5jb25jYXQoZ3JhcGhRbFR5cGVOYW1lcyk7XHJcbiJdfQ== | ||
var apiId = yup.string().typeError('The supplied value "${value}" of type "${type}" is not compatible with type "string"!').strict(true).required('Api Id may not be empty.').min(1, 'Api Id must be at least one character long.').max(64, 'Api Id may not exceed 64 characters.').test('no-reserved-word', "Model api id may not be one of the following keywords: " + reservedModelApiIds, function (value) { | ||
return !reservedModelApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
return value ? reservedWord === value.toLowerCase() : false; | ||
}); | ||
@@ -29,3 +30,3 @@ }).matches(/^[A-Z][a-zA-Z0-9]*$/, 'Api Id may only start with a capital letter and contain only alphanumeric characters.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGVsLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwsMkJBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9ULG9CQUFvQix5REFBQSxDQUFBLENBQUEsQ0FBNEQscUJBQXFCLFVBQVUsT0FBTztJQUFFLE9BQU8sQ0FBQyxtQkFBQSxDQUFvQixJQUFwQixDQUF5QixVQUFVLGNBQWM7UUFBRSxPQUFPLFlBQUEsQ0FBQSxHQUFBLENBQWlCO0lBQXJOO0FBQUEsRUFQbUIsQ0FRZCxPQVJjLENBUU4sdUJBQXVCO0FBU3BDLE9BQU8sR0FBQSxDQUFJLGNBQWMsR0FBQSxDQUNwQixNQURvQixFQUFBLENBRXBCLFNBRm9CLENBRVYsd0ZBRlUsQ0FHcEIsTUFIb0IsQ0FHYixLQUhhLENBSXBCLFFBSm9CLENBSVgsZ0RBSlcsQ0FLcEIsSUFMb0IsQ0FLZjtBQVFWLE9BQU8sR0FBQSxDQUFJLGNBQWMsR0FBQSxDQUNwQixNQURvQixFQUFBLENBRXBCLFNBRm9CLENBRVYsd0ZBRlUsQ0FHcEIsTUFIb0I7QUE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VsbFwiIGludG8gZW1wdHkgc3RyaW5nc1xyXG4gKi9cclxuZXhwb3J0IHZhciBkZXNjcmlwdGlvbiA9IHl1cFxyXG4gICAgLnN0cmluZygpXHJcbiAgICAudHlwZUVycm9yKCdUaGUgc3VwcGxpZWQgdmFsdWUgXCIke3ZhbHVlfVwiIG9mIHR5cGUgXCIke3R5cGV9XCIgaXMgbm90IGNvbXBhdGlibGUgd2l0aCB0eXBlIFwic3RyaW5nXCIhJylcclxuICAgIC5lbnN1cmUoKTtcclxuIl19 | ||
@@ -41,3 +42,3 @@ | ||
return !reservedFieldApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
return value ? reservedWord === value.toLowerCase() : false; | ||
}); | ||
@@ -54,3 +55,3 @@ }).matches(/^[a-z][a-zA-Z0-9]*$/, 'Field Api ID may only start with a lowercase letter and contain alphanumeric characters.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZpZWxkLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUywwQkFBMkI7QUFhcEMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZCxRQUpjLENBSUwseUNBSkssQ0FLZCxHQUxjLENBS1YsR0FBRyw4Q0FMTyxDQU1kLEdBTmMsQ0FNVixJQUFJLHVDQU5NLENBT2QsSUFQYyxDQU9ULG9CQUFvQixtREFBQSxDQUFBLENBQUEsQ0FBc0QscUJBQXFCLFVBQVUsT0FBTztJQUFFLE9BQU8sQ0FBQyxtQkFBQSxDQUFvQixJQUFwQixDQUF5QixVQUFVLGNBQWM7UUFBRSxPQUFPLFlBQUEsQ0FBQSxHQUFBLENBQWlCO0lBQS9NO0FBQUEsRUFQbUIsQ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gICAgICAgIC0+IEVuc3VyZXMgdGhhdCBvbmx5IHN0cmluZ3MgY2FuIGJlIHZhbGlkYXRlZCB3aXRoIHN1Y2Nlc3NcclxuICogLnR5cGVFcnJvcig6c3RyaW5nKS0+IEVuc3VyZXMgdGhhdCB0eXBlcyBvdGhlciB0aGFuIHN0cmluZyByZXR1cm4gZmFsc2VcclxuICogLmVuc3VyZSgpICAgICAgICAgIC0+IFRyYW5zZm9ybXMgdGhlIHZhbHVlcyBcInVuZGVmaW5lZFwiIGFuZCBcIm51bGxcIiBpbnRvIGVtcHR5IHN0cmluZ3NcclxuICovXHJcbmV4cG9ydCB2YXIgZGVzY3JpcHRpb24gPSB5dXBcclxuICAgIC5zdHJpbmcoKVxyXG4gICAgLnR5cGVFcnJvcignVGhlIHN1cHBsaWVkIHZhbHVlIFwiJHt2YWx1ZX1cIiBvZiB0eXBlIFwiJHt0eXBlfVwiIGlzIG5vdCBjb21wYXRpYmxlIHdpdGggdHlwZSBcInN0cmluZ1wiIScpXHJcbiAgICAuZW5zdXJlKCk7XHJcbiJdfQ== | ||
@@ -66,3 +67,3 @@ | ||
return !reservedEnumerationApiIds.some(function (reservedWord) { | ||
return reservedWord === value; | ||
return value ? reservedWord === value.toLowerCase() : false; | ||
}); | ||
@@ -75,3 +76,3 @@ }).matches(/^[A-Z][a-zA-Z0-9_]*$/, 'An Api Id may only start with a capital letter and contain only alphanumeric characters and underscores.'); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImVudW1lcmF0aW9uLnRzKG9yaWdpbmFsKSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUFZLFNBQVM7QUFDckIsUUFBUyxnQ0FBaUM7QUFZMUMsT0FBTyxHQUFBLENBQUksUUFBUSxHQUFBLENBQ2QsTUFEYyxFQUFBLENBRWQsU0FGYyxDQUVKLHdGQUZJLENBR2QsTUFIYyxDQUdQLEtBSE8sQ0FJZ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ScpXHJcbiAgICAucmVxdWlyZWQoJ0EgZW51bWVyYXRpb24gdmFsdWUgY2FuIG5vdCBiZSBlbXB0eS4nKVxyXG4gICAgLnN0cmljdCh0cnVlKVxyXG4gICAgLm1pbigxLCAnQW4gZW51bWVyYXRpb24gdmFsdWUgbXVzdCBiZSBhdCBsZWFzdCBvbmUgY2hhcmFjdGVyIGxvbmcuJylcclxuICAgIC5tYXgoMTkxLCAnQW4gZW51bWVyYXRpb24gdmFsdWUgbWF5IG5vdCBleGNlZWQgMTkxIGNoYXJhY3RlcnMuJylcclxuICAgIC5tYXRjaGVzKC9eW0EtWl1bYS16QS1aMC05X10qJC8sICdBbiBlbnVtZXJhdGlvbiB2YWx1ZSBtYXkgb25seSBzdGFydCB3aXRoIGFuIHVwcGVyY2FzZSBsZXR0ZXIgYW5kIGNvbnRhaW4gYWxwaGFudW1lcmljIGNoYXJhY3RlcnMgYW5kIHVuZGVyc2NvcmVzIG9ubHkuJyk7XHJcbi8qKlxyXG4gKiBDb252ZW5pZW5jZSBzY2hlbWEgZm9yIHZhbGlkYXRpbmcgdGhlIHZhbHVlcyBmaWVsZCBvZiBhbiBlbnVtLlxyXG4gKi9cclxuZXhwb3J0IHZhciB2YWx1ZXMgPSB5dXBcclxuICAgIC5hcnJheSgpXHJcbiAgICAub2YodmFsdWUpXHJcbiAgICAucmVxdWlyZWQoJ0FuIGVudW1lcmF0aW9uIG11c3QgY29udGFpbiBhdCBsZWFzdCBvbmUgdmFsdWUuJyk7XHJcbiJdfQ== | ||
@@ -78,0 +79,0 @@ |
{ | ||
"name": "@graphcms/validation", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"main": "dist/validation.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
478745
701