Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 448 Bytes

MIGRATION.md

File metadata and controls

25 lines (16 loc) · 448 Bytes

Migration Guide

Upgrading from 0.19.x to 0.20.0

Draft-specific validators are now available:

# Old (0.19.x)
validator = jsonschema_rs.JSONSchema(schema, draft=jsonschema_rs.Draft202012)

# New (0.20.0)
validator = jsonschema_rs.Draft202012Validator(schema)

Automatic draft detection:

# Old (0.19.x)
validator = jsonschema_rs.JSONSchema(schema)

# New (0.20.0)
validator = jsonschema_rs.validator_for(schema)