This Node.js application validates user registration data against a JSON schema using the Ajv library.
Make sure you have Node.js installed on your machine. You can download it from here.
- Clone this repository or download the source code.
- Navigate to the project directory in your terminal.
- Run
npm install
to install dependencies.
- Update the
userData
object inapp.js
with the user registration data you want to validate. - Customize the JSON schema in
schema.json
to fit your validation requirements if necessary. - Run
node app.js
in your terminal to validate the user registration data against the schema.
The JSON schema for user registration can be found in schema.json
. It defines the structure and validation rules for user registration data.
- Ajv: A JSON Schema Validator for JavaScript.
This project is licensed under the MIT License - see the LICENSE file for details.