Skip to content

Instantly share code, notes, and snippets.

@pinturic
pinturic / avro_validate.py
Created October 11, 2024 09:38
Avro validation
import fastavro
import json
# Load Avro schema
with open("schema.avsc", "r") as schema_file:
schema = json.load(schema_file)
# Load JSON data
with open("data.json", "r") as json_file:
json_data = json.load(json_file)

Keybase proof

I hereby claim:

  • I am pinturic on github.
  • I am pinturic (https://keybase.io/pinturic) on keybase.
  • I have a public key whose fingerprint is AD4A 2B12 E68A 9E3F CBF6 7FF4 1B02 2006 249D B4C8

To claim this, I am signing this object: