InterviewDB Question

Data Validation: Validate a JSON Payload Against a Schema with Nested Rules

Question Details

Problem Implement a schema validator. A schema is a Python dict specifying expected types and constraints. Validate a given payload against the schema and return a list of validation errors (empty list if valid). Supported schema keys: "type" ("str",…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone