Swap INTEGER for INT in generic diagrams to maintain backward compatibility

This commit is contained in:
1ilit
2024-06-24 05:10:39 +03:00
parent d8128f5010
commit 9e2684e7a9
4 changed files with 40 additions and 21 deletions

View File

@@ -6,8 +6,8 @@ const binaryRegex = /^[01]+$/;
/* eslint-disable no-unused-vars */
export const defaultTypes = {
INTEGER: {
type: "INTEGER",
INT: {
type: "INT",
checkDefault: (field) => {
return intRegex.test(field.default);
},