{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "AIEP Metadata Schema v1",
  "type": "object",
  "required": [
    "record_type",
    "aiep_protocol",
    "aiep_name",
    "aiep_spec_version",
    "publisher",
    "open_use_policy",
    "certification"
  ],
  "properties": {
    "record_type": {
      "const": "AIEP_METADATA"
    },
    "aiep_protocol": {
      "const": "AIEP"
    },
    "aiep_name": {
      "type": "string"
    },
    "aiep_spec_version": {
      "type": "string"
    },
    "publisher": {
      "type": "object"
    },
    "open_use_policy": {
      "type": "object",
      "properties": {
        "open_use_permitted": {
          "const": true
        }
      }
    },
    "certification": {
      "type": "object",
      "required": [
        "claims_aiep_certified"
      ],
      "properties": {
        "claims_aiep_certified": {
          "type": "boolean"
        }
      }
    }
  },
  "additionalProperties": true
}