validate

Validates that json conforms to this schema.

Undescribed keys are ignored, and optional properties may be absent or null.

Parameters

json

The JSON to validate.

Throws

describing the first violation. Returns normally if valid.