Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/express-validator/express-validator

An express.js middleware for validator.js.
https://github.com/express-validator/express-validator

docs: write about sanitization chain

1156aa27e6f637e197b3aab2891020006247103f authored over 7 years ago by Gustavo Henke <[email protected]>
typescript: type sanitize middleware

Also remove duplicated code

4c57ca02bd5d81811e527fed1ddc3d20d9705392 authored over 7 years ago by Gustavo Henke <[email protected]>
filter: create and expose sanitize middleware variations

a3f45975146b11de22de471bed7d2eceb58fe8ae authored over 7 years ago by Gustavo Henke <[email protected]>
filter: create base sanitize middleware

bcbd375dd891ad7d71828cdca2678862d83c5c2a authored over 7 years ago by Gustavo Henke <[email protected]>
Extract the list of extra validators/sanitizers to a constants file

e69bc1479877f654dc1975d3e97759e7f1d07eea authored over 7 years ago by Gustavo Henke <[email protected]>
Merge pull request #418 from ctavan/v4-sanitization

Sanitizers in the validation chain API

5e8ed2fe52c7e8a3425d5580b12245ac14c4b36d authored over 7 years ago by Gustavo Henke <[email protected]>
docs: add mentions about sanitizers in the validation chain

3138e54ef36970c573be6044e5befb6c3eb10317 authored over 7 years ago by Gustavo Henke <[email protected]>
typescript: add sanitizers to the validation chain API

08d219c6e1faaef1f29742257e819bc2fa9f88d8 authored over 7 years ago by Gustavo Henke <[email protected]>
legacy: add support for chaining sanitizers

a0b2e89247d0773fec11b26cd5a43f3d07717e4b authored over 7 years ago by Gustavo Henke <[email protected]>
check: select fields passing them thru sanitizers

ae9ed7e0e9a0e3ac64158cd6e3eab112b8231dbe authored over 7 years ago by Gustavo Henke <[email protected]>
check: add sanitization methods to the chain

985797262069d82383988fe302ab5196dd954f7e authored over 7 years ago by Gustavo Henke <[email protected]>
typescript: set withMessage() arg type to any

With hint from https://github.com/ctavan/express-validator/issues/401#issuecomment-329821262

dfb6d0327040cc1c210cf57e6a3c231a8c6df2e8 authored over 7 years ago by Gustavo Henke <[email protected]>
npm: update lockfile

51320c2feef090a8a57c8829e10c2dc677ceac08 authored over 7 years ago by Gustavo Henke <[email protected]>
docs: add example of custom validator

Closes #413

1908341739781b7862fb34a162c5421365ee10a0 authored over 7 years ago by Gustavo Henke <[email protected]>
legacy: use pretty message when schema validator doesn't exist

Instead of a cryptic error message!

Closes #299

4a5278888e2dd84259f2f18319dbe79b49d87ce2 authored over 7 years ago by Gustavo Henke <[email protected]>
check: make validationResult work even though no validators ran

Related to #411

1cd52ca33999e01945fe1ec2f58415e02abac799 authored over 7 years ago by Gustavo Henke <[email protected]>
docs: don't showcase .throw() without try..catch

It gets weird!

Closes #410

57fbab15a593798a397cfabba565980217708bc8 authored over 7 years ago by Gustavo Henke <[email protected]>
legacy: remove deprecation warnings

Since the whole legacy API is deprecated now,
there's no need to keep warnings of v3.

6cc9483ea2341be8ae99295a52b58c8707cc1edd authored over 7 years ago by Gustavo Henke <[email protected]>
docs: fix req.asyncValidationErrors() return value description

Closes #406

447d1227b656873e1d847e1a45075f3ac713ef28 authored over 7 years ago by Gustavo Henke <[email protected]>
Remove trailing comma in object def

08138cfc5b03bd91e26091a85bcb11c1faaa3c64 authored over 7 years ago by Gustavo Henke <[email protected]>
check: require formatParamOutput from utils dir

0a9fc0cacc734cca626f94bca2b79023f652112b authored over 7 years ago by Gustavo Henke <[email protected]>
legacy: extract utils to their own files

db4f4764b14ec3b39d05a0a68831535d1eae494d authored over 7 years ago by Gustavo Henke <[email protected]>
legacy/tests: check string conversion when validating

964a95381c7494231839067101c97f3b04e5ac0f authored over 7 years ago by Gustavo Henke <[email protected]>
legacy: remove monkeypatch of toDate method

e4952457a7bf9678815fb0470d792d1327db4138 authored over 7 years ago by Gustavo Henke <[email protected]>
4.1.1

8c129eb32dc43539dd12cd39d79c8a0f4d2cfac3 authored over 7 years ago by Gustavo Henke <[email protected]>
check: convert value to string just like v3

Fixes #399

2107164d2c21e5af176ec5c750f284cdd5194b97 authored over 7 years ago by Gustavo Henke <[email protected]>
check: use any rejection cause as error message

The chain runner expected all rejection causes to be
instances of Error, but that's not always t...

dddbe782a78b8810f2d8a8d345bfb38d08368339 authored over 7 years ago by Gustavo Henke <[email protected]>
legacy: restore support for non-string error messages

Fixes #401

15f1b57f8649a1e06b4c568057359b1bdfce51c1 authored over 7 years ago by Gustavo Henke <[email protected]>
legacy: don't set optional twice

04a004ec6107210b3ac2c56b958bb6f74da20cc7 authored over 7 years ago by Gustavo Henke <[email protected]>
check: don't fail when .withMessage() is called without validators

Fixes #398

21ef4403e9fcf281f1d3cd368844d09ee573cd25 authored over 7 years ago by Gustavo Henke <[email protected]>
4.1.0

8e3de682703b48d64629a5469b43309081b6bfe2 authored over 7 years ago by Gustavo Henke <[email protected]>
Typescript: add .exists() to the validation chain

Fixes #390

f344801828739125b4cf7c11a6bfcb60eea3890b authored over 7 years ago by Gustavo Henke <[email protected]>
Merge pull request #393 from ctavan/error-formatter

check API - error formatter

5c152dd119573d0360ea1ee0f30ada92a1a7845f authored over 7 years ago by Gustavo Henke <[email protected]>
Typescript: adds typings for validationResult .formatWith()

45b3d81a67539445003d0b6bdb4af06b19e4f29e authored over 7 years ago by Gustavo Henke <[email protected]>
docs: add info around .formatWith() of validationResult

cfca9d28a50cb0a128d10a6eb13e17a009d7e8ed authored over 7 years ago by Gustavo Henke <[email protected]>
legacy: delegate errorFormatter to validationResult.formatWith()

5b14c6f5f303b206c1f948bb9de89fc1a2f87df6 authored over 7 years ago by Gustavo Henke <[email protected]>
check/validationResult: add .formatWith()

This will allow to change the shape of the errors
before returning them.

1eaf36f11731a4a00c53b6683c723a6eb7635e16 authored over 7 years ago by Gustavo Henke <[email protected]>
docs: make explicit that Node.js 6 is required

fb316ff17c91b005038a1c28cb16c13305d177f6 authored over 7 years ago by Gustavo Henke <[email protected]>
4.0.0

2edcf17ce13682449c93669178241353bbb4e143 authored over 7 years ago by Gustavo Henke <[email protected]>
git: remove package-lock.json from ignore list

It seems like npm really wants it to be commited...

fb1f0324fb590a146c68a3ed78cd572764478c14 authored over 7 years ago by Gustavo Henke <[email protected]>
docs: add notice before usage example

df224549047cf6f90406ccc7737645bdb027dfd7 authored over 7 years ago by Gustavo Henke <[email protected]>
docs: change syntax from json to js

ad2c521cc2400143a90f8bd64346b4e86635c34b authored over 7 years ago by Gustavo Henke <[email protected]>
Merge pull request #389 from ctavan/v4-docs

Version 4 - Docs

1155743f6cccbe4914305d8c912a75895869667a authored over 7 years ago by Gustavo Henke <[email protected]>
docs: describe errors format in validation result API

83a9a21ebad68b35f77afd19da7be26666e95e0f authored over 7 years ago by Gustavo Henke <[email protected]>
docs: update oneOf behaviour description

1452c6567ab2ad8caee61910589c7e6fc41097f1 authored over 7 years ago by Gustavo Henke <[email protected]>
EditorConfig: disable trimming in markdown files

Lines that end with whitespaces have special meaning in this language!

60abeb9ef9f6d894f0d0854d722c6e057060467d authored over 7 years ago by Gustavo Henke <[email protected]>
docs: add links and extend the TOC

0c3b4560d3305e95330120e72a328a7a0c146b11 authored over 7 years ago by Gustavo Henke <[email protected]>
docs: create base README for v4

0117709e466581a61d827ff91ce3d0e2400865c9 authored over 7 years ago by Gustavo Henke <[email protected]>
docs: add v3 -> v4 upgrade guide

5e83e445a028c9eb8dd99b9cde88a54660fc4ac4 authored over 7 years ago by Gustavo Henke <[email protected]>
docs: add details regarding validation execution

6ce84b91eded98ebcde85cb7c7a33c5a6e0cb604 authored over 7 years ago by Gustavo Henke <[email protected]>
check/oneOf: set a single error in case any chain fails

31ae7657012228e0762c322e339483b32e09a211 authored over 7 years ago by Gustavo Henke <[email protected]>
check: use param/msg instead of path/message in errors

This is to keep v3 compatibility.

98bb61cf60b78c8491ecbf27538d178c987ae834 authored over 7 years ago by Gustavo Henke <[email protected]>
check, legacy: add built-in exists validator

80ba1f239496992b875ea026e87e829cf3c75b44 authored over 7 years ago by Gustavo Henke <[email protected]>
Merge pull request #388 from ctavan/v4-matched-data

Version 4 - Get subset of validated data

ff855ff43bdb877ac2ecb266bb3bd6418403ac14 authored over 7 years ago by Gustavo Henke <[email protected]>
Typescript: add typings + tests for filter directory

54fc0bcd3c0b3eba14ff5bcdc0b2287dc4c841ba authored over 7 years ago by Gustavo Henke <[email protected]>
Typescript: switch from 'files' config to 'includes'

38cac1851131c3e84c9b8328645fb25ce4103b77 authored over 7 years ago by Gustavo Henke <[email protected]>
filter: create matchedData to get data used in the validation

See #168

2766cb4ad7c1996ad4a54bf3dc83f2b263488c9e authored over 7 years ago by Gustavo Henke <[email protected]>
Merge pull request #387 from ctavan/v4-oneof

Version 4 - oneOf

42fa8d9bbd4dc4e71b9c506cd297a90ee88d607d authored over 7 years ago by Gustavo Henke <[email protected]>
Typescript: add typings for oneOf

ef561e7e2bd09205a8e7dc96148d6113e3dcb73e authored over 7 years ago by Gustavo Henke <[email protected]>
check: add support for oneOf checks

This is quite a OR support.
See #200

8ebb3c85e6e516e3fc9a6c05b5b8603e65df7ae1 authored over 7 years ago by Gustavo Henke <[email protected]>
check: use more semantic exports

6389d26a0f20663e262d76ffb5f2f602b95520af authored over 7 years ago by Gustavo Henke <[email protected]>
Fix indentation of some comments

508e594543f3f7dfdb2d7640e269613fa2271454 authored over 7 years ago by Gustavo Henke <[email protected]>
Update validator to 8.1.0

f9dea192dba8bd3cdcced4cf1e69daba292cae17 authored over 7 years ago by Gustavo Henke <[email protected]>
npm: remove and update some dev dependencies

f960259bd9687da3c4920f02cd8f49bcc2f6634a authored over 7 years ago by Gustavo Henke <[email protected]>
Tests: test that req.validationErrors() is false when no errors exist

628ea422f762f40625d60dc75e011f1920482d94 authored over 7 years ago by Gustavo Henke <[email protected]>
Merge pull request #386 from ctavan/v4-wildcard

Version 4 - Wildcard field selection

a74633b4656b7295742ed2ba47b45813f77f90de authored over 7 years ago by Gustavo Henke <[email protected]>
legacy: remove utils.locate

It's not used anymore!

bbe8c77339b84f50eaacffdfe52517ae5dceca93 authored over 7 years ago by Gustavo Henke <[email protected]>
check: implement wildcard field selection

5929a5c18a1162af22278ae88e470f22001b9e03 authored over 7 years ago by Gustavo Henke <[email protected]>
Tests: check that validators are run serially

See #349

0f756c3a718a04ce13cc0a846dbc26fb8cf19336 authored over 7 years ago by Gustavo Henke <[email protected]>
Remove console.log call

ef040b5aacd584b03c6e73f9c18c36784cc0558f authored over 7 years ago by Gustavo Henke <[email protected]>
Merge pull request #385 from ctavan/v4-negate

Version 4 - .not()

8bf34647358e2e02c6512a332bebeb0fade79976 authored over 7 years ago by Gustavo Henke <[email protected]>
Typescript: add .not() to validation chain

d1bcafb8e4b54766954a66f8cec07fc92ca2ab61 authored over 7 years ago by Gustavo Henke <[email protected]>
Adds .not() to validation chain

b7cce1b60c7930d3a454dbb06c20deecbc74057f authored over 7 years ago by Gustavo Henke <[email protected]>
Merge pull request #384 from ctavan/v4-result

Version 4 - validation result retrieval

f32569e988c66562a2fa31b5eb37008cb1db694f authored over 7 years ago by Gustavo Henke <[email protected]>
Migrate internal error building logic to check APIs

8c49ee489d000c6ed98a94a437e66ff43a42269b authored over 7 years ago by Gustavo Henke <[email protected]>
npm: ignore all spec files

fe3a86cb42dfba8cdf287230f7dd2409ae4e7460 authored over 7 years ago by Gustavo Henke <[email protected]>
TypeScript: add v4 .ts files to config

68a477be3b803831e66f4b68476498356f4567e7 authored over 7 years ago by Gustavo Henke <[email protected]>
Typescript: add validationResult typings and tests

d1e65410f4ab44d5aa3c4bf97bcfb56df4707434 authored over 7 years ago by Gustavo Henke <[email protected]>
check: create validationResult method

2e5455fa955ad04fb9aefb0a6b4f841ce2378268 authored over 7 years ago by Gustavo Henke <[email protected]>
Merge pull request #383 from ctavan/v4

Version 4 - validation

22311b40560eb2f5e7430bbc52f90f709b5678ef authored over 7 years ago by Gustavo Henke <[email protected]>
Tests: remove *.spec.js and /test from the coverage

3762a7b93bba55b0992075c1c535141b4b38e485 authored over 7 years ago by Gustavo Henke <[email protected]>
npm: set node engine to minimum of 6.0.0

a428ecdf310564e124498534f78c53e62379913d authored over 7 years ago by Gustavo Henke <[email protected]>
check: pass path and location to custom validators

In addition to the request, already passed to them.

980151f1bdabda69722a31f45cd4bcfab6ad4d47 authored over 7 years ago by Gustavo Henke <[email protected]>
tests: guarantee .custom() behaviour

d211abf2fd67b377fe24f7fb8ce7bbb014480a01 authored over 7 years ago by Gustavo Henke <[email protected]>
npm: update nyc dependency

408363f8141e7096ac3aa2e82c7fc8b940ff4b40 authored over 7 years ago by Gustavo Henke <[email protected]>
typescript: add typings for check directory

2f9a6228cacc71460b2badcdb7db55206aed738f authored over 7 years ago by Gustavo Henke <[email protected]>
typescript: upgrade base types to match validator v8.0.0

e409bb9a2999bd936a02bbfd6253780fd0412654 authored over 7 years ago by Gustavo Henke <[email protected]>
typescript: extract base typings to shared file

763d625ce828a18cee76d6026285485a7db3dffb authored over 7 years ago by Gustavo Henke <[email protected]>
npm: update validator dependency to ~8.0.0

dc9384125bdbc91c11da1294f59d541db5d4c4f6 authored over 7 years ago by Gustavo Henke <[email protected]>
CI: remove support for Node 4

72b386f507ab881cd858f6fd6b58e2bac5fa4098 authored over 7 years ago by Gustavo Henke <[email protected]>
npm: remove bluebird

3f9fa47b19b0039ae51c97e5d8c6eef99476c500 authored over 7 years ago by Gustavo Henke <[email protected]>
legacy: use new check API under the hood

d3de9ae033e90a169088a51701feee86cb678765 authored over 7 years ago by Gustavo Henke <[email protected]>
check: use message from context as 3rd option

cff81818468bd57e2735da8b43d66e86d95ea537 authored over 7 years ago by Gustavo Henke <[email protected]>
check: add support for setting optional flag

e05886ad4a3230a4dde30e0db1ccc01ccb941c36 authored over 7 years ago by Gustavo Henke <[email protected]>
check: add support for passing a context message

4bcecc3624b405535c254d91ce00f28a591ddf30 authored over 7 years ago by Gustavo Henke <[email protected]>
check: extract field selection logic to own file

1d57d0001d7ddbb6d002b76df1e9b36fbd08605e authored over 7 years ago by Gustavo Henke <[email protected]>
check: extract validation running to another function

This is so that we can reuse this logic later on

f3c0960cb22c4dfda76cf6b1d99773458f55f7a7 authored over 7 years ago by Gustavo Henke <[email protected]>
Tests: prefix check suites with "check: "

18f47ab0303d5c605a1e6196cd93c1dfe0705b07 authored over 7 years ago by Gustavo Henke <[email protected]>
Tests: prefix legacy tests with “Legacy: “

a9b618928a753b129f636db8d63e4091bc557a15 authored over 7 years ago by Gustavo Henke <[email protected]>
check: rename index exports

4ad479dca1fa85bdbbf6dfcbfe4a49ee13faebba authored over 7 years ago by Gustavo Henke <[email protected]>