Validation errors & helpers.
Purpose of this class to define a generic set of validation errors.
- Validation error
- Bad request
- Missing field
- Invalid field value
- Bad record
- Missing field
- Invalid field value
- Bad field
- Missing field
- Invalid field value
- Bad request
You can check if an err error is a validation error or a specific validation error with next functions:
IsValidationError(err error) boolIsBadRequestError(err error) boolIsBadRecordError(err error) boolIsBadFieldValueError(err error) bool
We build with our own tooling:
- SpecScore — specify requirements as
SpecScore.mdartifacts - SpecStudio — author & manage specs across their lifecycle
- inGitDB — store structured data in Git where applicable
- DALgo — data access layer for Go
- cover100.dev — drive toward 100% test coverage
- DataTug — query & explore data
https://pkg.go.dev/github.com/strongo/validation
This package is known to be used in next open source projects:
Please submit a pull request to add your project here if you use this package in an open source project.
The version is auto-incremented by CI/CD pipeline on push to main branch.
MIT License