Skip to content
#

Express

express logo

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

Here are 41,482 public repositories matching this topic...

CuriousMagpie
CuriousMagpie commented Jan 6, 2022

Description

User reports: "I just reset my account (using the option in the Danger Zone). The warning text says "You will lose all your equipment but you will be able to buy it all back, including all limited edition equipment or subscriber Mystery Items that you already own." However, the subscriber Mystery Items are still in my inventory. (So are the Daily Check-In items ... and the birthda

express-validator
NeverwinterMoon
NeverwinterMoon commented Oct 12, 2021

I managed to find a way to fail-fast the validation chain with bail, but what about failing fast the middleware list?

Say, I have

.post(
  '/somewhere',
  body('name').exists(),
  body('phoneNumber').exists(),
  handleStuff
)

If the name validation fails, I don't care to check phoneNumber anymore... Wasn't able to find a way to fail fast in this case. In the case

Created by TJ Holowaychuk

Released November 16, 2010

Organization
expressjs
Website
expressjs.com
Wikipedia
Wikipedia