feat: adds default max length for text-based fields
* feat: Added to types.ts the default Max Field Length * feat: Added the defaultMaxFieldLength to the schema.ts * feat: applying defaultMaxFieldLength to 3 validators * feat: renamed defaultMaxFieldLength to defaultMaxTextLength , adding defaultMax and min nums * feat: validating numbers with new defaultminnum and defaultmaxnum * feat: FIXED BUG, do not return an error message on the defaultmaxnum and minnum override checks * Added test fields * Eslint compliance * feat : eslint compliacnce * Added tests, though a reasonable payload config needs to be imported to them * Removed my failed jest tests, relying on the yarn dev test instead * Increased default num max and min range to JS safe integer * Jmi suggestions * feat: removing the superfluous number max and min default * Added test for max text field Co-authored-by: Tom Do <tom@iifuture.com> Co-authored-by: TomDoFuture <108644869+TomDoFuture@users.noreply.github.com>
This commit is contained in:
@@ -32,6 +32,11 @@ const TextFields: CollectionConfig = {
|
||||
}, 1));
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Override the 40k text length default (This one has 50k max length)',
|
||||
type: 'text',
|
||||
maxLength: 50000,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user