Hello,
as i understand, the line: jsonschema -i sample.json sample.schema
Is a console command, so you should do:
Save json to file and run the command above, or:
from jsonschema import validate
schema = load schema_file using python
validate(instance=YOUR_DATA, schema=schema)
And you should see the result...