{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/RegulatoryAction.schema.json",
  "title": "RegulatoryAction",
  "description": "A measure an authority takes about a regulated subject, such as a warning, order, penalty, suspension or withdrawal. The authority is the body taking the measure, and the legal resources are the provisions it relies on. The start and end dates bound the period in which the measure has effect, such as a suspension; the measure does not rewrite the validity of a registration or permission it concerns. Action types and legal resources are interpreted in their jurisdiction; recording a measure does not show that it is final or upheld.",
  "type": "object",
  "properties": {
    "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."
      }
    },
    "subject_uri": {
      "type": "string",
      "format": "uri",
      "description": "The URI of the thing this record or statement is about."
    },
    "authority": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/Organization.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The organization responsible for the act or event a record describes, such as the body that receives an application, decides a case, reviews an appeal, inspects a subject or takes a measure. Each class using it states which of these roles applies. It links to an Organization, whereas issuing_authority names the issuer of a document or credential as text."
    },
    "action_type": {
      "$ref": "https://publicschema.org/CodedValue.schema.json",
      "description": "The kind of measure taken, such as a warning, fine, suspension or recall order."
    },
    "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."
      }
    },
    "action_date": {
      "type": "string",
      "format": "date",
      "description": "The date on which the authority took the measure, separate from the time the record was entered."
    },
    "start_date": {
      "type": "string",
      "format": "date",
      "description": "The date on which this became effective."
    },
    "end_date": {
      "type": "string",
      "format": "date",
      "description": "The last day on which this is effective. A period includes both its start date and its end date, so a period that applies only on 30 June 2026 has start date 2026-06-30 and end date 2026-06-30."
    },
    "action_description": {
      "type": "string",
      "description": "What the measure covers and any conditions attached to it."
    }
  }
}
