{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/Certification/v1/schema.json",
  "title": "Certification",
  "description": "Objects Grid Certification Object. An official and authoritative statement about a subject, e.g. a product, service, or organization, typically issued by an independent certification body. Contained in the certified object. Modeled in compliance with https://schema.org/Certification.",
  "type": "object",
  "properties": {
    "at_type": {
      "description": "The object type",
      "anyOf": [
        { "type": "string", "enum": ["Certification"] },
        { "type": "null" }
      ]
    },
    "name": {
      "description": "The Certification name, e.g. 'ISO 9001', 'EU Ecolabel'",
      "type": "array",
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      },
      "minItems": 1
    },
    "description": {
      "description": "The Certification description, e.g. what it certifies and the standard it is based on",
      "type": ["array", "null"],
      "items": {
        "$ref": "https://objectsgrid.com/.well-known/objects-catalog/LanguageTaggedString/v1/schema.json"
      }
    },
    "url": {
      "description": "URL where the Certification can be consulted or verified",
      "type": ["string", "null"],
      "format": "uri"
    },
    "certificationIdentification": {
      "description": "Identifier of the Certification instance, as registered with the issuing certification body",
      "type": ["string", "null"],
      "minLength": 1,
      "maxLength": 100
    },
    "certificationStatus": {
      "description": "The current status of the Certification",
      "anyOf": [
        { "$ref": "https://objectsgrid.com/.well-known/objects-catalog/CertificationStatusEnumeration/v1/schema.json" },
        { "type": "null" }
      ]
    },
    "expires": {
      "description": "The date the Certification expires",
      "type": ["string", "null"],
      "format": "date-time"
    },
    "issuedBy": {
      "description": "The name of the organization that issued the Certification",
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "validFrom": {
      "description": "The date the Certification becomes valid",
      "type": ["string", "null"],
      "format": "date-time"
    }
  },
  "required": ["name", "issuedBy"],
  "unevaluatedProperties": false
}
