OpenBook
  • Problems
  • Tracks
  • How it works
  • Pricing
Start practicingSign In
Problems/Data Modeling

10. CSV Import with Validation

Easy

Upload a contacts CSV, validate rows, and report errors by line.

30 minute budget74.6% acceptanceparsing · validation

Requirements

  1. 01POST /imports takes a contacts CSV as the JSON field csv and returns an import report: counts plus a list of row errors, each with a line number and the field at fault.
  2. 02Each row needs a name and a valid email. Phone is optional but must be well-formed when present.
  3. 03An email may be imported only once, whether it repeats inside the file or was imported earlier.
  4. 04GET /contacts lists every imported contact. GET /imports/:id returns an import's report again.

What the hidden tests check

  • Everything the interviewer tells you is checked.
  • Most files mix valid and invalid rows; counts and error line numbers are compared exactly.

4 more details are held back. In a mock interview they come out only when you ask the interviewer the right question; in practice they are listed in the workspace.

Sign in to start

Attempts, files and transcripts are saved to your account so the grader can review how you worked.

Sign inCreate an account
OpenBook

Practice for interviews where you build a feature with an AI assistant.

Early preview. Problems, grading and the interviewer are still changing.

Practice

  • Problems
  • Tracks
  • How it works
  • Pricing

Legal

  • Terms
  • Privacy
© 2026 OpenBook.