An open API service indexing awesome lists of open source software.

https://github.com/rofrol/ajv-regexp-errormessage-example


https://github.com/rofrol/ajv-regexp-errormessage-example

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# ajv-regexp-errormessage-example

Example to demostrate usage of [`regexp`](https://github.com/ajv-validator/ajv-keywords#regexp) from ajv-keywords and `errorMessage` from ajv-errors.

## Run

`node index.js`

## Links

- https://stackoverflow.com/questions/61016810/user-friendly-error-message-using-ajv-json-schema-validator/61097319#61097319
- https://github.com/atlassian/better-ajv-errors
- https://stackoverflow.com/questions/58384179/syntaxerror-cannot-use-import-statement-outside-a-module
- https://stackoverflow.com/questions/42103343/typeerror-ajv-is-not-a-constructor
- Relative JSON Pointer examples https://gist.github.com/geraintluff/5911303
- https://stackoverflow.com/questions/55521116/can-i-validate-a-date-using-ajv-json-schema-without-converting-the-date-to-stri
- https://thabo-ambrose.medium.com/use-custom-date-time-format-for-ajv-schema-validation-38e336dbd6ed
- https://stackoverflow.com/questions/42819408/ajv-custom-keyword-validation
- https://stackoverflow.com/questions/65303161/how-can-i-override-default-error-messages-text-in-json-forms
- https://stackoverflow.com/questions/52566472/how-to-extend-a-schema-in-json-schema
- More Exhaustive ISO 8601 timezone offset support https://github.com/ajv-validator/ajv/issues/1061
- https://stackoverflow.com/questions/45888524/empty-values-validation-in-json-schema-using-ajv/62971172#62971172
- https://stackoverflow.com/questions/48942916/difference-between-utc-and-gmt/48960297
- https://stackoverflow.com/questions/14495019/what-is-the-difference-between-togmtstring-and-toutcstring/14495190#14495190

## Validate UTC timestamp

- https://stackoverflow.com/questions/52869695/check-if-a-date-string-is-in-iso-and-utc-format
- https://www.regextester.com/97766
- https://github.com/Bwca/iso-datestring-validator

## Posted in

- https://github.com/ajv-validator/ajv/issues/949#issuecomment-758182398
- https://github.com/ajv-validator/ajv/issues/101#issuecomment-758184529
- https://github.com/ajv-validator/ajv/issues/181#issuecomment-758189078
- https://github.com/ajv-validator/ajv/issues/161#issuecomment-758192207
- https://github.com/ajv-validator/ajv/issues/936#issuecomment-758196778
- https://github.com/ajv-validator/ajv-keywords/issues/108#issuecomment-758194159
- https://stackoverflow.com/questions/41874810/make-json-schema-pattern-case-insensitive/65673578#65673578
- https://stackoverflow.com/questions/16491973/using-regex-in-json-schema/65673596#65673596
- https://stackoverflow.com/questions/30739738/json-schema-validation-with-escaped-characters-in-patterns-fails/65673635#65673635
- https://stackoverflow.com/questions/47451293/json-schema-validation-with-perfect-messages/65673695#65673695
- https://stackoverflow.com/questions/61016810/user-friendly-error-message-using-ajv-json-schema-validator/61097319#comment116114881_61097319
- https://stackoverflow.com/questions/60146568/ajv-how-to-add-custom-error-messages-in-javascrip/65673884#65673884
- https://stackoverflow.com/questions/49212708/ajv-custom-error-message-for-type/65673910#65673910
- https://stackoverflow.com/questions/21239665/json-schema-date-time-validation-including-specific-dates#comment116115311_21241289
- https://stackoverflow.com/questions/35780530/json-schema-strictproperties-for-date-time-formatminimum-and-formatmaximum#comment116115343_35780530