-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
minLength
and maxLength
on textarea
field causes payload config validation to fail on startup.
#11
Comments
minLength
and maxLength
on textarea
field causes payload config validation to fail on startup.
Hey @richardvanbergen, we appreciate the bug report! It looks like |
I was going to open a pull request but you got there first. Well done on the quick response! 馃槈 |
Fixed with 2c98087 |
Fix pushed in version 0.1.145 and updated create-payload-app's payload version as well. @richardvanbergen You can either update your package.json version or any new app w/ create-payload-app will have that version 馃憤 |
fix: properly exports types
chore: exports fields top-level
chore: exports fields top-level
I hope it's OK to just open issues like this but I think this is a bug so you should hopefully find it useful. 馃槉
Update (Original below)
Problem is actually down to
minLength
andmaxLength
properties ontextarea
. They don't appear to be expected by whatever code is checking the payload config on startup.Reproduction steps
yarn create payload-app
textarea
withminLength
ormaxLength
properties.Expected Behavior
Adding the following config (mostly copied from the documentation) should show a collection with a 'title' and 'description' field.
Current Behavior
Payload fails to start at payload configuration step due to schema validation failing.
BUT! (and this is why I think it's a bug)
If you comment out the fields, start the server and then uncomment again then it displays as expected.
Reproduction steps
yarn create payload-app
The text was updated successfully, but these errors were encountered: