{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swift/json-schema/swift-pmi-participant-details-schema.json",
  "title": "PmiParticipantDetails",
  "description": "PMI participant details as reported within records of REACHPLUS flatfile",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swift-swiftref-api-v4-openapi.yml#/components/schemas/PmiParticipantDetails",
  "type": "object",
  "required": [
    "service_id",
    "service_name",
    "participant_id"
  ],
  "properties": {
    "service_id": {
      "$ref": "#/$defs/PmiServiceId"
    },
    "service_name": {
      "$ref": "#/$defs/StringMax105"
    },
    "participant_id": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_1": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_2": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_3": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_4": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_5": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_6": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_7": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_8": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_9": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_10": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_11": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_12": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_13": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_14": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_15": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_16": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_17": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_18": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_19": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "attribute_20": {
      "$ref": "#/$defs/ReachPlusGenericAttribute"
    },
    "activation_date": {
      "type": "string",
      "format": "date",
      "description": "The date of activation of an added record, in case it is different from the monthly publication date"
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      },
      "minItems": 1
    }
  },
  "additionalProperties": false,
  "$defs": {
    "Link": {
      "type": "object",
      "description": "Hypermedia link relation of the current resource/resources",
      "required": [
        "href",
        "rel",
        "type"
      ],
      "properties": {
        "href": {
          "type": "string",
          "format": "uri",
          "description": "URL representing resource/resources related to the current one/ones"
        },
        "rel": {
          "type": "string",
          "enum": [
            "first",
            "last",
            "next",
            "previous",
            "self",
            "describedby"
          ],
          "description": "How this link is related to the current resource/resources"
        },
        "type": {
          "type": "string",
          "enum": [
            "GET"
          ],
          "description": "HTTP method to use with this link"
        }
      },
      "additionalProperties": false
    },
    "PmiServiceId": {
      "$ref": "#/$defs/StringMax20"
    },
    "ReachPlusGenericAttribute": {
      "$ref": "#/$defs/StringMax255"
    },
    "StringMax105": {
      "description": "Generic string definition, from 1 to 105 characters long",
      "type": "string",
      "minLength": 1,
      "maxLength": 105
    },
    "StringMax20": {
      "description": "Generic string definition, from 1 to 20 characters long",
      "type": "string",
      "minLength": 1,
      "maxLength": 20
    },
    "StringMax255": {
      "description": "Generic string definition, from 1 to 255 characters long",
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    }
  }
}