$schema: https://json-schema.org/draft/2020-12/schema
$id: OrgRecordRelationship.yaml
type: object
properties:
  org:
    $ref: OrgRef.yaml
    description: The other organization.
  kind:
    type: object
    properties:
      value:
        $ref: OrgRecordKindOptions.yaml
        description: The selected value, from a predefined set of options
      customValue:
        type: string
        description: A custom value, used when the selected value is the `custom` option
      description:
        type: string
        description: A human-readable description of the value
    required:
      - value
    unevaluatedProperties:
      not: {}
    description: The relationship's subtype within the category its list names.
  startDate:
    $ref: isoDate.yaml
    description: "When the relationship started, in ISO 8601 format: YYYY-MM-DD"
  endDate:
    $ref: isoDate.yaml
    description: "When the relationship ended, in ISO 8601 format: YYYY-MM-DD"
  status:
    $ref: OrgRelationshipStatus.yaml
    description: Whether the relationship is in effect, as stated by the provider.
required:
  - org
unevaluatedProperties:
  not: {}
examples:
  - org:
      id: 01912a8b-7c3d-7894-abcd-ef1234567894
      name: Riverside Reading Project
    kind:
      value: duplicate
description: A record replacement relationship.
