$schema: https://json-schema.org/draft/2020-12/schema
$id: OrgRefCollection.yaml
type: object
properties:
  primary:
    $ref: OrgRef.yaml
    description: The primary organization in the collection.
  otherOrgs:
    $ref: "#/$defs/RecordOrgRef"
    description: Other organizations in the collection, keyed by an implementation-defined role.
required:
  - primary
unevaluatedProperties:
  not: {}
examples:
  - primary:
      id: 018f2e77-4b5c-7d2e-9f3a-bcdef1234567
      name: Health Resources and Services Administration
      identifiers:
        otherIds:
          org:grants.gov:agency:
            registry:
              code: org:grants.gov:agency
            id: HRSA
description: |-
  A group of organization references, with a primary organization and
  optional others. Appears wherever several organizations share a role on a
  record, such as an award's funders or recipient organizations.
$defs:
  RecordOrgRef:
    type: object
    properties: {}
    unevaluatedProperties:
      $ref: OrgRef.yaml
