background
Received username, string length greater than or equal to 2 bits, incorrect use
Username string ` validate:"required,min=2," `
The console prompts that the validation label on the error information field “username” is invalid
After finding the validate document, the correct import method is used. After using the string format restrictions such as min, the require is no longer used
Username string ` validate:"min=0,max=5" ` //use requier instead of min
Similar Posts:
- Formatter-maven-plugin formatter validate Error
- Using Vue + Axios: axios.post error: request failed with status code 400 is one of the solutions
- Tag code error valueerror: bad input shape()
- joi Validation error: UnhandledPromiseRejectionWarning: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
- [Solved] java.lang.IllegalArgumentException: Cannot format given Object as a Date
- [Solved] Validation failed for one or more entities. See ‘EntityValidationErrors’
- [Solved] Django use search_fields error (in get_lookup_constraint)
- [Solved] Search with xadmin_ Related field got invalid lookup: icontains
- Angular7:Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’ [Solved]
- El Form Verification Error: [XXX] is not a string [How to Solve]