$schema: https://json-schema.org/draft/2020-12/schema
$id: OpportunityDetails.yaml
type: object
properties:
  competitions:
    type: array
    items:
      $ref: CompetitionBase.yaml
    description: The competitions associated with the opportunity
  awards:
    type: array
    items:
      $ref: AwdRef.yaml
    description: |-
      Awards that resulted from this opportunity, as references.

      Each entry references an award that resulted from this opportunity; the
      award's `opportunity.id`, when it is published, is this record's `id`.
      An entry is a reference, not the award record: `GET /awards/<id>` is the
      canonical record only where an implementation serves the award routes,
      and otherwise the entry's `identifiers`, where the publisher supplies
      them, are the key for joining the award in another system. A consumer
      must not assume a reference can be dereferenced through this API.

      Absent means the implementation does not publish this link for the
      record, and an empty array means the link is published and no awards are
      known. Entries carry no ordering guarantee.
allOf:
  - $ref: OpportunityBase.yaml
unevaluatedProperties:
  not: {}
description: A funding opportunity with additional details, like available competitions.
