{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://publicschema.org/ServiceApplication.schema.json",
  "title": "ServiceApplication",
  "description": "A request submitted to a public organization to use a public service or to obtain a decision under it. Its authority is the organization that received the request, and its subject URI names the person, organization, permission, asset or other subject the request is about. The applicant, the submitter and the subject can differ. Submission alone does not establish eligibility, registration, permission or an obligation to grant the request.",
  "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."
      }
    },
    "public_service": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/PublicService.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The described public service to which this application is submitted."
    },
    "service_applicant": {
      "type": "string",
      "format": "uri",
      "description": "The URI of the person, group or organization requesting the service, which may differ from whoever submits the request on its behalf. For a program eligibility decision, use applicant."
    },
    "subject_uri": {
      "type": "string",
      "format": "uri",
      "description": "The URI of the thing this record or statement is about."
    },
    "submitted_by": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/Agent.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The person or organization that actually submitted the application or appeal, which may differ from the applicant or appellant. Identifying a submitter does not establish their authority to represent someone else."
    },
    "submission_representation": {
      "oneOf": [
        {
          "$ref": "https://publicschema.org/RepresentationRole.schema.json"
        },
        {
          "type": "string",
          "description": "URI or identifier reference"
        }
      ],
      "description": "The representation relationship that the submitter relied on for this application or appeal. Its parties, period and scope still have to match the particular submission."
    },
    "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."
    },
    "request_submission_date": {
      "type": "string",
      "format": "date",
      "description": "The date on which the applicant, the appellant or someone acting for them submitted the application or appeal. It can precede the date on which the receiving authority registered it."
    },
    "evidence_assertions": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "$ref": "https://publicschema.org/EvidenceAssertion.schema.json"
          },
          {
            "type": "string",
            "description": "URI or identifier reference"
          }
        ],
        "description": "Statements identifying sources that support or contradict this statement."
      }
    },
    "recorded_at": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the statement or event was entered into its source record. It can differ from when the fact took effect."
    }
  }
}
