{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/PublicOrganization.schema.json",
  "title": "PublicOrganization",
  "description": "An organization that a law or other legal framework places in the public sector, at any level of government. Being public does not settle whether it has its own legal personality.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The full display name of the record. Depending on the concept, this is a person's or group's name, or the title of a program, instrument, scoring rule, or software product."
    },
    "identifiers": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/Identifier.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "Identifiers carried by this entity, such as national ID numbers, program IDs, or identifiers asserted by an identity document."
      }
    },
    "identity_documents": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/IdentityDocument.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "Identity documents held by this party, such as passports, national identity cards, civil registration certificates, and program-issued beneficiary cards, or, for an organization, a certificate of registration."
      }
    },
    "location": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/Location.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The geographic location of the subject of this record, captured as coordinates or administrative area."
    },
    "legal_form": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The legal form of an organization under the law it was formed under, such as a limited company, cooperative or statutory body."
    },
    "economic_activities": {
      "type": "array",
      "items": {
        "$ref": "https://publicschema.org/CodedValue.schema.json",
        "description": "The economic activities the organization carries out, each coded in a classification of economic activities. ISIC is the international reference; a register may use NACE, NAICS or a national adaptation. The order of the values does not mark a principal activity."
      }
    },
    "formation_date": {
      "type": "string",
      "format": "date",
      "description": "The date on which this group or organization was formed or registered."
    },
    "dissolution_date": {
      "type": "string",
      "format": "date",
      "description": "The date on which the organization ceased to exist or was removed from the register, such as by dissolution, liquidation or striking off. It is the counterpart of the formation date."
    },
    "legal_resources": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Identified legal provisions or policy resources that a service, organization, decision, measure, representation or institutional change relies on. A link does not execute a rule or establish which version is applicable. For the legal basis for processing personal data, use legal_basis."
      }
    },
    "public_functions": {
      "type": "array",
      "items": {
        "$ref": "https://publicschema.org/CodedValue.schema.json",
        "description": "The public functions or remit for which an organization is responsible, such as tax collection or primary education, coded where possible."
      }
    },
    "competence_areas": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/Location.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "The administrative areas that an organization covers or serves. They are distinct from the jurisdiction whose data-protection law applies to a record."
      }
    }
  }
}
