node-express-realworld-example-app icon indicating copy to clipboard operation
node-express-realworld-example-app copied to clipboard

Missing a few features from the new Realworld API spec.

Open h6w opened this issue 5 years ago • 1 comments

The new postman tests at https://github.com/gothinkster/realworld/blob/master/api/Conduit.postman_collection.json are failing a few tests when run against the node-experess backend repos.

Namely:

User: 'bio' and 'image' property are missing. Article: "updatedAt" property is missing. "celeb_" test fails. At first glance, this looks like a test for emails with underlines, but I'm probably wrong.

h6w avatar Mar 03 '19 02:03 h6w

"celeb_" test fails because the regex in the User mongoose model only allows letters and numbers!

models/User.js 12: match: [/^[a-zA-Z0-9]+$/, 'is invalid']

Changing to match: [/^[a-zA-Z0-9_]+$/, 'is invalid'] will make things run.

The bio and image features aren't implemented it seems? Is anyone working on those? I could probably get that done if not.

larswww avatar Oct 29 '19 16:10 larswww